mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
An unportable and slow approach to installing
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
47ae89d46b
commit
8bed893da2
2 changed files with 11 additions and 3 deletions
6
Rakefile
6
Rakefile
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue