mirror of
https://github.com/inspec/inspec
synced 2024-11-26 22:50:36 +00:00
move plugin to bundles
This commit is contained in:
parent
a55a4869d9
commit
7e88f56917
7 changed files with 3 additions and 8 deletions
|
@ -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)
|
|
@ -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
|
|
@ -1,5 +0,0 @@
|
|||
# encoding: utf-8
|
||||
# author: Christoph Hartmann
|
||||
# author: Dominik Richter
|
||||
|
||||
require 'extras/inspec-compliance'
|
Loading…
Reference in a new issue