mirror of
https://github.com/inspec/inspec
synced 2024-11-29 16:10:30 +00:00
Fixed Inspec::Dist on habitat CLI.
Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
parent
ddd6f354ee
commit
fcb65b2ffb
1 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,6 @@ require 'inspec/dist'
|
||||||
module InspecPlugins
|
module InspecPlugins
|
||||||
module Habitat
|
module Habitat
|
||||||
class ProfileCLI < Inspec.plugin(2, :cli_command)
|
class ProfileCLI < Inspec.plugin(2, :cli_command)
|
||||||
include Inspec::Dist
|
|
||||||
|
|
||||||
# Override banner method to correct missing subcommand.
|
# Override banner method to correct missing subcommand.
|
||||||
# @see https://github.com/erikhuda/thor/issues/261
|
# @see https://github.com/erikhuda/thor/issues/261
|
||||||
def self.banner(command, _namespace = nil, _subcommand = false)
|
def self.banner(command, _namespace = nil, _subcommand = false)
|
||||||
|
@ -31,6 +29,8 @@ module InspecPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
class CLI < Inspec.plugin(2, :cli_command)
|
class CLI < Inspec.plugin(2, :cli_command)
|
||||||
|
include Inspec::Dist
|
||||||
|
|
||||||
subcommand_desc 'habitat SUBCOMMAND', "Manage Habitat with #{PRODUCT_NAME}"
|
subcommand_desc 'habitat SUBCOMMAND', "Manage Habitat with #{PRODUCT_NAME}"
|
||||||
namespace 'habitat'
|
namespace 'habitat'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue