From 4a03e54b4c8626ae087e5dfce895633d22bd7f31 Mon Sep 17 00:00:00 2001 From: Jerry Aldrich Date: Thu, 15 Nov 2018 14:14:49 -0600 Subject: [PATCH] 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 --- lib/inspec/fetcher.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/inspec/fetcher.rb b/lib/inspec/fetcher.rb index 4720e3c54..2891e8640 100644 --- a/lib/inspec/fetcher.rb +++ b/lib/inspec/fetcher.rb @@ -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'