move plugin to bundles

This commit is contained in:
Christoph Hartmann 2016-02-05 14:48:55 +01:00
parent a55a4869d9
commit 7e88f56917
7 changed files with 3 additions and 8 deletions

View file

@ -58,7 +58,7 @@ module Compliance
config = Compliance::Configuration.new
url = "#{config['server']}/user/compliance"
get(url, config['token'], '')
_success, data = get(url, config['token'], '')
if !data.nil?
profiles = JSON.parse(data)

View file

@ -141,6 +141,6 @@ module Compliance
end
end
# register the subcommand to InspecCLI
Inspec::InspecCLI.register(ComplianceCLI, 'compliance', 'compliance SUBCOMMAND ...', 'Chef Compliance commands', {})
# register the subcommand to Inspec CLI registry
Inspec::Plugins::CLI.register(ComplianceCLI, 'compliance', 'compliance SUBCOMMAND ...', 'Chef Compliance commands', {})
end

View file

@ -1,5 +0,0 @@
# encoding: utf-8
# author: Christoph Hartmann
# author: Dominik Richter
require 'extras/inspec-compliance'