Class: Rhelm::Subcommand::Test
- Defined in:
- lib/rhelm/subcommand/test.rb
Overview
Helm test subcommand: ‘helm test [RELEASE] [flags]`. docs: helm.sh/docs/helm/helm_test/
Instance Attribute Summary collapse
-
#help ⇒ Object
readonly
Returns the value of attribute help.
-
#logs ⇒ Object
readonly
Returns the value of attribute logs.
-
#release ⇒ Object
readonly
Returns the value of attribute release.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
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
- #cli_args ⇒ Object
-
#initialize(release, options = {}) ⇒ Test
constructor
A new instance of Test.
- #subcommand_name ⇒ Object
Methods inherited from Base
#args, #full_cli_call, #report_failure, #run
Constructor Details
#initialize(release, options = {}) ⇒ Test
Returns a new instance of Test.
13 14 15 16 17 18 19 20 |
# File 'lib/rhelm/subcommand/test.rb', line 13 def initialize(release, = {}) super() @release = [:release] @help = [:help] @logs = [:logs] @timeout = [:timeout] end |
Instance Attribute Details
#help ⇒ Object (readonly)
Returns the value of attribute help.
8 9 10 |
# File 'lib/rhelm/subcommand/test.rb', line 8 def help @help end |
#logs ⇒ Object (readonly)
Returns the value of attribute logs.
8 9 10 |
# File 'lib/rhelm/subcommand/test.rb', line 8 def logs @logs end |
#release ⇒ Object (readonly)
Returns the value of attribute release.
8 9 10 |
# File 'lib/rhelm/subcommand/test.rb', line 8 def release @release end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
8 9 10 |
# File 'lib/rhelm/subcommand/test.rb', line 8 def timeout @timeout end |
Instance Method Details
#cli_args ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'lib/rhelm/subcommand/test.rb', line 26 def cli_args super.tap do |args| args << '--help' if help args << '--logs' if logs args << ['--timeout', timeout] if timeout args << release end.flatten end |
#subcommand_name ⇒ Object
22 23 24 |
# File 'lib/rhelm/subcommand/test.rb', line 22 def subcommand_name "test" end |