Class: InspecPlugins::Habitat::ProfileCLI

Inherits:
Object
  • Object
show all
Defined in:
lib/plugins/inspec-habitat/lib/inspec-habitat/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

Override banner method to correct missing subcommand.



9
10
11
# File 'lib/plugins/inspec-habitat/lib/inspec-habitat/cli.rb', line 9

def self.banner(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, options).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, options).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, options).upload
end