Class: Artifact::CLI

Inherits:
Inspec::BaseCLI show all
Defined in:
lib/bundles/inspec-artifact/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Inspec::BaseCLI

default_options, detect, exec_options, exit_on_failure?, parse_reporters, profile_options, target_options, validate_reporters

Class Method Details

TODO: find another solution, once github.com/erikhuda/thor/issues/261 is fixed



97
98
99
# File 'lib/bundles/inspec-artifact/cli.rb', line 97

def self.banner(command, _namespace = nil, _subcommand = false)
  "#{basename} #{subcommand_prefix} #{command.usage}"
end

.subcommand_prefixObject



101
102
103
# File 'lib/bundles/inspec-artifact/cli.rb', line 101

def self.subcommand_prefix
  namespace
end

Instance Method Details

#generate_keysObject



110
111
112
113
# File 'lib/bundles/inspec-artifact/cli.rb', line 110

def generate_keys
  puts 'Generating keys'
  keygen
end

#install_profileObject



136
137
138
# File 'lib/bundles/inspec-artifact/cli.rb', line 136

def install_profile
  profile_install
end

#sign_profileObject



120
121
122
# File 'lib/bundles/inspec-artifact/cli.rb', line 120

def sign_profile
  profile_sign
end

#verify_profileObject



127
128
129
# File 'lib/bundles/inspec-artifact/cli.rb', line 127

def verify_profile
  profile_verify
end