mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
fix Gemfile for inspec-core-bin gem
* in order to appbundle inspec-core-bin we need a Gemfile. * the previous gemfile refers to inspec-bin and that gets packaged and shipped with the inspec-core-bin Gemfile and that does not work when appbundler tries to use it. * hacking up appbundler to be more complicated than it is, is probably a poor idea since it is already a big pile of magic. * so what would be good to do in order to preserve the DRY'ness of having both inspec-bin and inspec-core-bin share binaries, would be to have the Gemfile be usable by both gems when they are ultimately consumed. * because the inspec-core-bin gem only has the inspec-core-bin.gemspec what we can do is test to see which gemspec we have and then behave accordingly. still a bit hacky, but better than the other alternatives we considered. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
This commit is contained in:
parent
8fffa5e2cb
commit
700d5f4c28
1 changed files with 6 additions and 1 deletions
|
@ -1,2 +1,7 @@
|
|||
source "https://rubygems.org"
|
||||
gemspec name: "inspec-bin"
|
||||
main_gemspec = File.expand_path("../inspec-bin.gemspec", __FILE__)
|
||||
if File.exist?(main_gemspec)
|
||||
gemspec name: "inspec-bin"
|
||||
else
|
||||
gemspec name: "inspec-core-bin"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue