mirror of
https://github.com/inspec/inspec
synced 2024-11-23 05:03:07 +00:00
811318f2f8
* 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>
26 lines
649 B
Ruby
26 lines
649 B
Ruby
# encoding: utf-8
|
|
# copyright: 2015, Dominik Richter
|
|
# author: Dominik Richter
|
|
# author: Christoph Hartmann
|
|
|
|
libdir = File.dirname(__FILE__)
|
|
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
|
|
|
require 'inspec/version'
|
|
require 'inspec/exceptions'
|
|
require 'inspec/profile'
|
|
require 'inspec/rule'
|
|
require 'matchers/matchers'
|
|
require 'inspec/runner'
|
|
require 'inspec/shell'
|
|
require 'inspec/formatters'
|
|
require 'inspec/reporters'
|
|
|
|
require 'inspec/plugin/v2'
|
|
require 'inspec/plugin/v1'
|
|
|
|
# all utils that may be required by legacy plugins
|
|
require 'inspec/base_cli'
|
|
require 'inspec/fetcher'
|
|
require 'inspec/source_reader'
|
|
require 'inspec/resource'
|