class Rhelm::Subcommand::Status
Helm status subcommand: `helm status RELEASE_NAME [flags]`. docs: helm.sh/docs/helm/helm_status/
Attributes
help[R]
release_name[R]
Public Class Methods
new(release_name, options = {})
click to toggle source
Calls superclass method
Rhelm::Subcommand::Base::new
# File lib/rhelm/subcommand/status.rb, line 11 def initialize(release_name, options = {}) super(options) @release_name = release_name @help = options[:help] end
Public Instance Methods
cli_args()
click to toggle source
Calls superclass method
Rhelm::Subcommand::Base#cli_args
# File lib/rhelm/subcommand/status.rb, line 34 def cli_args super.tap do |args| args << '--help' if help args << release_name end.flatten end
exists?()
click to toggle source
# File lib/rhelm/subcommand/status.rb, line 22 def exists? run(raise_on_error: false) do |lines,status| if status == 0 true elsif status == 1 && /Error: release: not found/m.match(lines) false else report_failure(lines, status) end end end
subcommand_name()
click to toggle source
# File lib/rhelm/subcommand/status.rb, line 18 def subcommand_name "status" end