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



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

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

.subcommand_prefixObject



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

def self.subcommand_prefix
  namespace
end

Instance Method Details

#generate_keysObject



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

def generate_keys
  puts 'Generating keys'
  keygen
end

#install_profileObject



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

def install_profile
  profile_install
end

#sign_profileObject



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

def sign_profile
  profile_sign
end

#verify_profileObject



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

def verify_profile
  profile_verify
end