Fixed Inspec::Dist on habitat CLI.

Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
Ryan Davis 2019-05-29 02:25:26 -07:00
parent ddd6f354ee
commit fcb65b2ffb

View file

@ -4,8 +4,6 @@ require 'inspec/dist'
module InspecPlugins
module Habitat
class ProfileCLI < Inspec.plugin(2, :cli_command)
include Inspec::Dist
# Override banner method to correct missing subcommand.
# @see https://github.com/erikhuda/thor/issues/261
def self.banner(command, _namespace = nil, _subcommand = false)
@ -31,6 +29,8 @@ module InspecPlugins
end
class CLI < Inspec.plugin(2, :cli_command)
include Inspec::Dist
subcommand_desc 'habitat SUBCOMMAND', "Manage Habitat with #{PRODUCT_NAME}"
namespace 'habitat'