Class: Rhelm::Subcommand::Env

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

Overview

Helm env subcommand: ‘helm env [flags]`. docs: helm.sh/docs/helm/helm_env/

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(options = {}) ⇒ Env

Returns a new instance of Env.



10
11
12
13
14
# File 'lib/rhelm/subcommand/env.rb', line 10

def initialize(options = {})
  super

  @help = options[:help]
end

Instance Attribute Details

#helpObject (readonly)

Returns the value of attribute help.



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

def help
  @help
end

Instance Method Details

#cli_argsObject



20
21
22
23
24
# File 'lib/rhelm/subcommand/env.rb', line 20

def cli_args
  super.tap do |args|
    args << "--help" if help
  end.flatten
end

#subcommand_nameObject



16
17
18
# File 'lib/rhelm/subcommand/env.rb', line 16

def subcommand_name
  "env"
end