1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-08 21:17:43 +03:00

F #2645: Exclude oneprovision from Ruby gems (#2733)

This commit is contained in:
Vlastimil Holer 2018-12-19 15:26:12 +01:00 committed by Ruben S. Montero
parent 7618a5c1ac
commit 37635d86b6

View File

@ -95,7 +95,7 @@ GEM_DESCRIPTION={
:cli => {
:name => 'opennebula-cli',
:files => [
['src/cli/one[a-z]*', '/bin'],
['src/cli/one[a-z]*', '/bin', 'oneprovision'],
['src/cli/*.rb', '/lib'],
['src/cli/one_helper/*.rb', '/lib/one_helper'],
['NOTICE', ''],
@ -123,11 +123,11 @@ end
def file_list(description)
files=Array.new
description[:files].each do |f, prefix|
source=Dir.glob(f)
description[:files].each do |f, prefix, exclude|
Dir.glob(f).each do |source|
next if (! exclude.nil?) and (source.match(exclude))
files+=source.map do |source|
[source, sane_prefix(prefix)+File.basename(source)]
files << [source, sane_prefix(prefix)+File.basename(source)]
end
end