mirror of
https://github.com/inspec/inspec
synced 2024-11-25 14:10:25 +00:00
Add Rakefile to inspec-bin to allow rake install
to function.
Without the Rakefile `rake install` looped forever. Signed-off-by: Miah Johnson <miah@chia-pet.org>
This commit is contained in:
parent
aa87212e9f
commit
9f9dc504f0
1 changed files with 10 additions and 0 deletions
10
inspec-bin/Rakefile
Normal file
10
inspec-bin/Rakefile
Normal file
|
@ -0,0 +1,10 @@
|
|||
Bundler::GemHelper.install_tasks(name: "inspec-bin")
|
||||
|
||||
desc "force install the inspec-bin gem"
|
||||
task "install:force" do
|
||||
sh "gem build -V inspec-bin.gemspec"
|
||||
built_gem_path = Dir["inspec-bin-*.gem"].sort_by { |f| File.mtime(f) }.last
|
||||
FileUtils.mkdir_p("pkg") unless Dir.exist?("pkg")
|
||||
FileUtils.mv(built_gem_path, "pkg")
|
||||
sh "gem install -f pkg/#{built_gem_path}"
|
||||
end
|
Loading…
Reference in a new issue