class Rhelm::Client
Constants
- HELM_VERSION_RE
version.BuildInfo{Version:“v3.4.2”, GitCommit:“23dd3af5e19a02d4f4baa5b2f242645a1a3af629”, GitTreeState:“dirty”, GoVersion:“go1.15.5”}
- SUBCOMMANDS
Attributes
logger[R]
program[R]
Public Class Methods
new(program: "helm", logger: nil, **default_options)
click to toggle source
# File lib/rhelm/client.rb, line 16 def initialize(program: "helm", logger: nil, **default_options) @program = program @logger ||= SimpleLogger.new @default_options = default_options || {} end
Public Instance Methods
helm_commit()
click to toggle source
# File lib/rhelm/client.rb, line 36 def helm_commit version_info[:GitCommit] end
helm_go_version()
click to toggle source
# File lib/rhelm/client.rb, line 40 def helm_go_version version_info[:GoVersion] end
helm_version()
click to toggle source
# File lib/rhelm/client.rb, line 32 def helm_version version_info[:Version] end
run_command(subcommand_name, *ordinal_options, **flag_options, &block)
click to toggle source
# File lib/rhelm/client.rb, line 28 def run_command(subcommand_name, *ordinal_options, **flag_options, &block) SubcommandProxy.new(subcommand_name, self, *ordinal_options, **@default_options.merge(flag_options), &block).run end
Private Instance Methods
version_info()
click to toggle source
# File lib/rhelm/client.rb, line 48 def version_info @version_info ||= version.run do |lines, status| if m = HELM_VERSION_RE.match(lines) { Version: m[1], GitCommit: m[2], GoVersion: m[4] } end end end