2015-04-09 20:01:23 +00:00
|
|
|
# copyright: 2015, Dominik Richter
|
|
|
|
|
2015-06-07 19:41:54 +00:00
|
|
|
libdir = File.dirname(__FILE__)
|
|
|
|
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
|
|
|
|
2019-06-11 22:24:35 +00:00
|
|
|
require "inspec/version"
|
|
|
|
require "inspec/exceptions"
|
|
|
|
require "inspec/utils/deprecation"
|
|
|
|
require "inspec/profile"
|
|
|
|
require "inspec/rule"
|
|
|
|
require "matchers/matchers"
|
|
|
|
require "inspec/runner"
|
|
|
|
require "inspec/shell"
|
|
|
|
require "inspec/formatters"
|
|
|
|
require "inspec/reporters"
|
|
|
|
require "inspec/input_registry"
|
|
|
|
require "inspec/rspec_extensions"
|
|
|
|
require "inspec/globals"
|
|
|
|
require "inspec/impact"
|
|
|
|
require "inspec/utils/telemetry"
|
|
|
|
require "inspec/utils/telemetry/global_methods"
|
2016-02-05 13:55:12 +00:00
|
|
|
|
2019-06-11 22:24:35 +00:00
|
|
|
require "inspec/plugin/v2"
|
|
|
|
require "inspec/plugin/v1"
|
Plugins API v2: Loader, Base API, and Test Harness (#3278)
* Functional tests for userdir option
* Accepts --config-dir CLI option
* Actually loads a config file from the config dir, more cases to test
* Able to load config and verify contents from config-dir
* Functional tests to ensure precedence for config options
* Enable setting config dir via env var
* .inspec, not .inspec.d
* Begin converting PluginCtl to PluginLoader/Registry
* Able to load and partially validate the plugins.json file
* More work on the plugin loader
* Break the world, move next gen stuff to plugin/
* Be sure to require base cli in bundled plugins
* Move test file
* Revert changes to v1 plugin, so we can have a separate one
* Checkpoint commit
* Move v2 plugin work to v2 area
* Move plugins v1 code into an isolated directory
* rubocop fixes
* Rip out the stuff about a user-dir config file, just use a plugin file
* Two psuedocode test file
* Working base API, moock plugin type, and loader.
* Adjust load path to be more welcoming
* Silence circular depencency warning, which was breaking a unit test
* Linting
* Fix plugin type registry, add tests to cover
* Feedback from Jerry
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-08-16 22:16:32 +00:00
|
|
|
|
|
|
|
# all utils that may be required by legacy plugins
|
2019-06-11 22:24:35 +00:00
|
|
|
require "inspec/base_cli"
|
|
|
|
require "inspec/fetcher"
|
|
|
|
require "inspec/source_reader"
|
|
|
|
require "inspec/resource"
|
2022-02-16 16:19:01 +00:00
|
|
|
|
|
|
|
require "inspec/dependency_loader"
|
|
|
|
require "inspec/dependency_installer"
|