Class: Rhelm::Subcommand::Verify

Inherits:
Base
  • Object
show all
Defined in:
lib/rhelm/subcommand/verify.rb

Overview

Helm verify subcommand: ‘helm verify PATH [flags]`. docs: helm.sh/docs/helm/helm_verify/

Instance Attribute Summary collapse

Attributes inherited from Base

#client, #debug, #kube_apiserver, #kube_as_group, #kube_as_user, #kube_context, #kube_token, #kubeconfig, #namespace, #registry_config, #repository_cache, #repository_config

Instance Method Summary collapse

Methods inherited from Base

#args, #full_cli_call, #report_failure, #run

Constructor Details

#initialize(path, options = {}) ⇒ Verify

Returns a new instance of Verify.



11
12
13
14
15
16
# File 'lib/rhelm/subcommand/verify.rb', line 11

def initialize(path, options = {})
  super(options)

  @path = path
  @keyring = options[:keyring]
end

Instance Attribute Details

#keyringObject (readonly)

Returns the value of attribute keyring.



8
9
10
# File 'lib/rhelm/subcommand/verify.rb', line 8

def keyring
  @keyring
end

#pathObject (readonly)

Returns the value of attribute path.



8
9
10
# File 'lib/rhelm/subcommand/verify.rb', line 8

def path
  @path
end

Instance Method Details

#cli_argsObject



22
23
24
25
26
27
28
# File 'lib/rhelm/subcommand/verify.rb', line 22

def cli_args
  super.tap do |args|
    args << ['--keyring', keyring] if keyring

    args << path
  end.flatten
end

#subcommand_nameObject



18
19
20
# File 'lib/rhelm/subcommand/verify.rb', line 18

def subcommand_name
  "verify"
end