mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
Wrap appbundler block to force lazy evaluation
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
44059a84e4
commit
cfda9ea5ca
1 changed files with 6 additions and 4 deletions
|
@ -46,9 +46,11 @@ build do
|
|||
gem 'build inspec-bin.gemspec', env: env, cwd: "#{project_dir}/inspec-bin"
|
||||
gem 'install inspec-bin-*.gem --no-document', env: env, cwd: "#{project_dir}/inspec-bin"
|
||||
|
||||
if Dir.exist?("#{project_dir}/inspec-bin")
|
||||
appbundle 'inspec', lockdir: project_dir, gem: 'inspec-bin', env: env
|
||||
else
|
||||
appbundle 'inspec', env: env
|
||||
block do
|
||||
if Dir.exist?("#{project_dir}/inspec-bin")
|
||||
appbundle 'inspec', lockdir: project_dir, gem: 'inspec-bin', env: env
|
||||
else
|
||||
appbundle 'inspec', env: env
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue