class Rhelm::Subcommand::Uninstall

Helm uninstall subcommand: `helm uninstall RELEASE_NAME […] [flags]`. docs: helm.sh/docs/helm/helm_uninstall/

Attributes

description[R]
dry_run[R]
help[R]
keep_history[R]
no_hooks[R]
release_name[R]
timeout[R]

Public Class Methods

new(release_name, options = {}) click to toggle source
Calls superclass method Rhelm::Subcommand::Base::new
# File lib/rhelm/subcommand/uninstall.rb, line 16
def initialize(release_name, options = {})
  super(options)

  @release_name = release_name
  @description = options[:description]
  @dry_run = options[:dry_run]
  @help = options[:help]
  @keep_history = options[:keep_history]
  @no_hooks = options[:no_hooks]
  @timeout = options[:timeout]
end

Public Instance Methods

cli_args() click to toggle source
Calls superclass method Rhelm::Subcommand::Base#cli_args
# 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() click to toggle source
# File lib/rhelm/subcommand/uninstall.rb, line 28
def subcommand_name
  'uninstall'
end