An unportable and slow approach to installing

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
Clinton Wolfe 2019-04-25 20:50:32 -04:00 committed by tyler-ball
parent 47ae89d46b
commit 8bed893da2
2 changed files with 11 additions and 3 deletions

View file

@ -43,6 +43,12 @@ rescue LoadError
puts 'rubocop is not available. Install the rubocop gem to run the lint tests.'
end
task :install do
inspec_bin_path = ::File.join(::File.dirname(__FILE__), "inspec-bin")
Dir.chdir(inspec_bin_path)
sh("rake install")
end
# update command output for demo
desc 'Run inspec commands and save results to www/app/responses'
task :update_demo do

View file

@ -1,3 +1,5 @@
# we need to force the install in order to overwrite the binstubs from
# old inspec gems.
Bundler::GemHelper.install_tasks force: true
task :install do
sh('gem build inspec-bin.gemspec')
# Not likely to be portable
sh('yes | gem install *.gem')
end