Class: InspecPlugins::Habitat::ProfileCLI
- Inherits:
-
Object
- Object
- InspecPlugins::Habitat::ProfileCLI
- Defined in:
- lib/plugins/inspec-habitat/lib/inspec-habitat/cli.rb
Class Method Summary collapse
-
.banner(command, _namespace = nil, _subcommand = false) ⇒ Object
Override banner method to correct missing subcommand.
Instance Method Summary collapse
Class Method Details
.banner(command, _namespace = nil, _subcommand = false) ⇒ Object
Override banner method to correct missing subcommand.
9 10 11 |
# File 'lib/plugins/inspec-habitat/lib/inspec-habitat/cli.rb', line 9 def self.(command, _namespace = nil, _subcommand = false) "#{basename} habitat profile #{command.usage}" end |
Instance Method Details
#create(path = ".") ⇒ Object
16 17 18 |
# File 'lib/plugins/inspec-habitat/lib/inspec-habitat/cli.rb', line 16 def create(path = ".") InspecPlugins::Habitat::Profile.new(path, ).create end |
#setup(path = ".") ⇒ Object
21 22 23 |
# File 'lib/plugins/inspec-habitat/lib/inspec-habitat/cli.rb', line 21 def setup(path = ".") InspecPlugins::Habitat::Profile.new(path, ).setup end |
#upload(path = ".") ⇒ Object
26 27 28 |
# File 'lib/plugins/inspec-habitat/lib/inspec-habitat/cli.rb', line 26 def upload(path = ".") InspecPlugins::Habitat::Profile.new(path, ).upload end |