mirror of
https://github.com/inspec/inspec
synced 2024-12-28 05:53:14 +00:00
7ccf0fa364
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.
27 lines
721 B
Ruby
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'
|