2015-04-09 20:01:23 +00:00
|
|
|
# encoding: utf-8
|
|
|
|
# copyright: 2015, Dominik Richter
|
2015-10-06 16:55:44 +00:00
|
|
|
# author: Dominik Richter
|
|
|
|
# author: Christoph Hartmann
|
2015-04-09 20:01:23 +00:00
|
|
|
|
2015-06-07 19:41:54 +00:00
|
|
|
libdir = File.dirname(__FILE__)
|
|
|
|
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
|
|
|
|
2015-10-26 03:04:18 +00:00
|
|
|
require 'inspec/version'
|
2017-05-05 13:04:02 +00:00
|
|
|
require 'inspec/exceptions'
|
2018-12-26 18:43:09 +00:00
|
|
|
require 'utils/deprecation'
|
2015-10-26 03:04:18 +00:00
|
|
|
require 'inspec/profile'
|
|
|
|
require 'inspec/rule'
|
2016-02-05 11:22:23 +00:00
|
|
|
require 'matchers/matchers'
|
2015-10-26 03:04:18 +00:00
|
|
|
require 'inspec/runner'
|
2016-02-05 13:55:12 +00:00
|
|
|
require 'inspec/shell'
|
2018-02-08 09:06:58 +00:00
|
|
|
require 'inspec/formatters'
|
|
|
|
require 'inspec/reporters'
|
2019-02-11 17:00:59 +00:00
|
|
|
require 'inspec/input_registry'
|
2018-09-12 20:42:58 +00:00
|
|
|
require 'inspec/rspec_extensions'
|
2018-09-07 03:28:08 +00:00
|
|
|
require 'inspec/globals'
|
2018-09-13 18:14:05 +00:00
|
|
|
require 'inspec/impact'
|
2016-02-05 13:55:12 +00:00
|
|
|
|
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
|
|
|
require 'inspec/plugin/v2'
|
|
|
|
require 'inspec/plugin/v1'
|
|
|
|
|
|
|
|
# all utils that may be required by legacy plugins
|
2016-07-16 03:23:26 +00:00
|
|
|
require 'inspec/base_cli'
|
2016-02-21 09:45:02 +00:00
|
|
|
require 'inspec/fetcher'
|
2016-02-21 11:39:07 +00:00
|
|
|
require 'inspec/source_reader'
|
2016-02-05 11:22:23 +00:00
|
|
|
require 'inspec/resource'
|