class Rhelm::Subcommand::Rollback
Helm rollback subcommand: `helm rollback <RELEASE> [REVISION] [flags]`. docs: helm.sh/docs/helm/helm_rollback/
Attributes
cleanup_on_fail[R]
dry_run[R]
force[R]
help[R]
history_max_int[R]
no_hooks[R]
recreate_pods[R]
release[R]
revision[R]
timeout_duration[R]
wait[R]
Public Class Methods
new(release, revision, options = {})
click to toggle source
Calls superclass method
Rhelm::Subcommand::Base::new
# File lib/rhelm/subcommand/rollback.rb, line 20 def initialize(release, revision, options = {}) super(options) @release = release @revision = revision @cleanup_on_fail = options[:cleanup_on_fail] @dry_run = options[:dry_run] @force = options[:force] @help = options[:help] @history_max_int = options[:history_max_int] @no_hooks = options[:no_hooks] @recreate_pods = options[:recreate_pods] @timeout_duration = options[:timeout_duration] @wait = options[:wait] end
Public Instance Methods
cli_args()
click to toggle source
Calls superclass method
Rhelm::Subcommand::Base#cli_args
# File lib/rhelm/subcommand/rollback.rb, line 40 def cli_args super.tap do |args| args << '--cleanup-on-fail' if cleanup_on_fail args << '--dry-run' if dry_run args << '--force' if force args << '--help' if help args << ['--history-max-int', history_max_int] if history_max_int args << '--no-hooks' if no_hooks args << '--recreate-pods' if recreate_pods args << ['--timeout-duration', timeout_duration] if timeout_duration args << '--wait' if wait args << release args << revision end.flatten end
subcommand_name()
click to toggle source
# File lib/rhelm/subcommand/rollback.rb, line 36 def subcommand_name "rollback" end