Class: Artifact::CLI

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

Overview

rubocop:disable Metrics/ClassLength

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Inspec::BaseCLI

exec_options, profile_options, target_options

Class Method Details

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



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

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

.subcommand_prefixObject



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

def self.subcommand_prefix
  namespace
end

Instance Method Details

#generate_keysObject



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

def generate_keys
  puts 'Generating keys'
  keygen
end

#install_profileObject



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

def install_profile
  profile_install
end

#sign_profileObject



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

def sign_profile
  profile_sign
end

#verify_profileObject



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

def verify_profile
  profile_verify
end