Build inspec-bin gem too

Signed-off-by: Jaymala Sinha <jsinha@chef.io>
This commit is contained in:
Jaymala Sinha 2019-04-26 16:45:56 -04:00 committed by tyler-ball
parent 2938d12be7
commit 2a4f3a168d

View file

@ -43,5 +43,12 @@ build do
gem "build #{name}.gemspec", env: env
gem "install #{name}-*.gem --no-document", env: env
appbundle 'inspec', env: env
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
end
end