Load the compliance plugin when the fetcher is needed (#3609)

* Add Compliance fetcher pending 4.0 plugin

When migrating `inspec-compliance` to a V2 plugin only the CLI functions
were migrated. This caused the fetcher portions of `inspec-compliance`
to fail.

Currently, there isn't a fetcher plugin type so this loads the fetcher
explicitly until a fetcher plugin type and corresponding Compliance
fetcher is created in InSpec 4.0.

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
This commit is contained in:
Jerry Aldrich 2018-11-15 14:14:49 -06:00 committed by Jared Quick
parent 09b0c41e39
commit 4a03e54b4c

View file

@ -42,3 +42,6 @@ end
require 'fetchers/local'
require 'fetchers/url'
require 'fetchers/git'
# TODO: Remove in 4.0 when Compliance fetcher plugin is created
require 'plugins/inspec-compliance/lib/inspec-compliance/api'