bundle exec works

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
Clinton Wolfe 2019-04-25 19:16:08 -04:00 committed by tyler-ball
parent d448fdcb8d
commit e404bafd7a
3 changed files with 12 additions and 3 deletions

View file

@ -5,6 +5,9 @@ gem 'inspec', path: '.'
gem 'ffi', '>= 1.9.14'
# Include the Chef-branded inspec executable here, as we can't put it in the gem
gem 'inspec-bin', path: 'inspec-bin'
group :omnibus do
gem 'rb-readline'
gem 'appbundler'

3
inspec-bin/Rakefile Normal file
View file

@ -0,0 +1,3 @@
# we need to force the install in order to overwrite the binstubs from
# old inspec gems.
Bundler::GemHelper.install_tasks force: true

View file

@ -7,6 +7,9 @@
Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8
require_relative '../lib/inspec'
require_relative '../lib/inspec/cli'
Inspec::InspecCLI.start(ARGV)
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'inspec'
require 'inspec/cli'
Inspec::InspecCLI.start(ARGV)