Wrap appbundler block to force lazy evaluation

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
Clinton Wolfe 2019-04-29 13:13:35 -04:00 committed by tyler-ball
parent 44059a84e4
commit cfda9ea5ca

View file

@ -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