Class: Rhelm::Subcommand::Uninstall
- Defined in:
- lib/rhelm/subcommand/uninstall.rb
Overview
Helm uninstall subcommand: ‘helm uninstall RELEASE_NAME […] [flags]`. docs: helm.sh/docs/helm/helm_uninstall/
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#dry_run ⇒ Object
readonly
Returns the value of attribute dry_run.
-
#help ⇒ Object
readonly
Returns the value of attribute help.
-
#keep_history ⇒ Object
readonly
Returns the value of attribute keep_history.
-
#no_hooks ⇒ Object
readonly
Returns the value of attribute no_hooks.
-
#release_name ⇒ Object
readonly
Returns the value of attribute release_name.
-
#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_name, options = {}) ⇒ Uninstall
constructor
A new instance of Uninstall.
- #subcommand_name ⇒ Object
Methods inherited from Base
#args, #full_cli_call, #report_failure, #run
Constructor Details
#initialize(release_name, options = {}) ⇒ Uninstall
Returns a new instance of Uninstall.
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/rhelm/subcommand/uninstall.rb', line 16 def initialize(release_name, = {}) super() @release_name = release_name @description = [:description] @dry_run = [:dry_run] @help = [:help] @keep_history = [:keep_history] @no_hooks = [:no_hooks] @timeout = [:timeout] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
8 9 10 |
# File 'lib/rhelm/subcommand/uninstall.rb', line 8 def description @description end |
#dry_run ⇒ Object (readonly)
Returns the value of attribute dry_run.
8 9 10 |
# File 'lib/rhelm/subcommand/uninstall.rb', line 8 def dry_run @dry_run end |
#help ⇒ Object (readonly)
Returns the value of attribute help.
8 9 10 |
# File 'lib/rhelm/subcommand/uninstall.rb', line 8 def help @help end |
#keep_history ⇒ Object (readonly)
Returns the value of attribute keep_history.
8 9 10 |
# File 'lib/rhelm/subcommand/uninstall.rb', line 8 def keep_history @keep_history end |
#no_hooks ⇒ Object (readonly)
Returns the value of attribute no_hooks.
8 9 10 |
# File 'lib/rhelm/subcommand/uninstall.rb', line 8 def no_hooks @no_hooks end |
#release_name ⇒ Object (readonly)
Returns the value of attribute release_name.
8 9 10 |
# File 'lib/rhelm/subcommand/uninstall.rb', line 8 def release_name @release_name end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
8 9 10 |
# File 'lib/rhelm/subcommand/uninstall.rb', line 8 def timeout @timeout end |
Instance Method Details
#cli_args ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/rhelm/subcommand/uninstall.rb', line 32 def cli_args super.tap do |args| args << ['--description', description] if description args << '--dry-run' if dry_run args << '--help' if help args << '--keep-history' if keep_history args << '--no-hooks' if no_hooks args << ['--timeout', timeout] if timeout args << release_name end.flatten end |
#subcommand_name ⇒ Object
28 29 30 |
# File 'lib/rhelm/subcommand/uninstall.rb', line 28 def subcommand_name 'uninstall' end |