inspec/lib/inspec.rb
Dominik Richter 7ccf0fa364 avoid automatic plugin loading throughout the library
only load plugins through the binary, never through the library. This avoids issue we have in accidentally loading plugins in tests and integration work. They should only be loaded when users request them.
2016-02-09 00:55:02 +01:00

27 lines
721 B
Ruby

# encoding: utf-8
# copyright: 2015, Dominik Richter
# license: All rights reserved
# author: Dominik Richter
# author: Christoph Hartmann
Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8
libdir = File.dirname(__FILE__)
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
require 'inspec/version'
require 'inspec/profile'
require 'inspec/rspec_json_formatter'
require 'inspec/rule'
require 'matchers/matchers'
require 'inspec/runner'
require 'inspec/shell'
# all utils that may be required by plugins
require 'utils/base_cli'
# ensure resource and plugins are loaded after runner, because the runner loads
# targets
require 'inspec/resource'
require 'inspec/plugins'