Class: Rhelm::Subcommand::List
- Defined in:
- lib/rhelm/subcommand/list.rb
Overview
Helm list subcommand: ‘helm list [flags]`. docs: helm.sh/docs/helm/helm_list/
Instance Attribute Summary collapse
-
#all ⇒ Object
readonly
Returns the value of attribute all.
-
#all_namespaces ⇒ Object
readonly
Returns the value of attribute all_namespaces.
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#deployed ⇒ Object
readonly
Returns the value of attribute deployed.
-
#failed ⇒ Object
readonly
Returns the value of attribute failed.
-
#filter ⇒ Object
readonly
Returns the value of attribute filter.
-
#help ⇒ Object
readonly
Returns the value of attribute help.
-
#max ⇒ Object
readonly
Returns the value of attribute max.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#pending ⇒ Object
readonly
Returns the value of attribute pending.
-
#reverse ⇒ Object
readonly
Returns the value of attribute reverse.
-
#selector ⇒ Object
readonly
Returns the value of attribute selector.
-
#short ⇒ Object
readonly
Returns the value of attribute short.
-
#superseded ⇒ Object
readonly
Returns the value of attribute superseded.
-
#time_format ⇒ Object
readonly
Returns the value of attribute time_format.
-
#uninstalled ⇒ Object
readonly
Returns the value of attribute uninstalled.
-
#uninstalling ⇒ Object
readonly
Returns the value of attribute uninstalling.
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(options = {}) ⇒ List
constructor
A new instance of List.
- #subcommand_name ⇒ Object
Methods inherited from Base
#args, #full_cli_call, #report_failure, #run
Constructor Details
#initialize(options = {}) ⇒ List
Returns a new instance of List.
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/rhelm/subcommand/list.rb', line 27 def initialize( = {}) super() @all = [:all] @all_namespaces = [:all_namespaces] @date = [:date] @deployed = [:deployed] @failed = [:failed] @filter = [:filter] @help = [:help] @max = [:max] @offset = [:offset] @output = [:output] @pending = [:pending] @reverse = [:reverse] @selector = [:selector] @short = [:short] @superseded = [:superseded] @time_format = [:time_format] @uninstalled = [:uninstalled] @uninstalling = [:uninstalling] end |
Instance Attribute Details
#all ⇒ Object (readonly)
Returns the value of attribute all.
8 9 10 |
# File 'lib/rhelm/subcommand/list.rb', line 8 def all @all end |
#all_namespaces ⇒ Object (readonly)
Returns the value of attribute all_namespaces.
8 9 10 |
# File 'lib/rhelm/subcommand/list.rb', line 8 def all_namespaces @all_namespaces end |
#date ⇒ Object (readonly)
Returns the value of attribute date.
8 9 10 |
# File 'lib/rhelm/subcommand/list.rb', line 8 def date @date end |
#deployed ⇒ Object (readonly)
Returns the value of attribute deployed.
8 9 10 |
# File 'lib/rhelm/subcommand/list.rb', line 8 def deployed @deployed end |
#failed ⇒ Object (readonly)
Returns the value of attribute failed.
8 9 10 |
# File 'lib/rhelm/subcommand/list.rb', line 8 def failed @failed end |
#filter ⇒ Object (readonly)
Returns the value of attribute filter.
8 9 10 |
# File 'lib/rhelm/subcommand/list.rb', line 8 def filter @filter end |
#help ⇒ Object (readonly)
Returns the value of attribute help.
8 9 10 |
# File 'lib/rhelm/subcommand/list.rb', line 8 def help @help end |
#max ⇒ Object (readonly)
Returns the value of attribute max.
8 9 10 |
# File 'lib/rhelm/subcommand/list.rb', line 8 def max @max end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
8 9 10 |
# File 'lib/rhelm/subcommand/list.rb', line 8 def offset @offset end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
8 9 10 |
# File 'lib/rhelm/subcommand/list.rb', line 8 def output @output end |
#pending ⇒ Object (readonly)
Returns the value of attribute pending.
8 9 10 |
# File 'lib/rhelm/subcommand/list.rb', line 8 def pending @pending end |
#reverse ⇒ Object (readonly)
Returns the value of attribute reverse.
8 9 10 |
# File 'lib/rhelm/subcommand/list.rb', line 8 def reverse @reverse end |
#selector ⇒ Object (readonly)
Returns the value of attribute selector.
8 9 10 |
# File 'lib/rhelm/subcommand/list.rb', line 8 def selector @selector end |
#short ⇒ Object (readonly)
Returns the value of attribute short.
8 9 10 |
# File 'lib/rhelm/subcommand/list.rb', line 8 def short @short end |
#superseded ⇒ Object (readonly)
Returns the value of attribute superseded.
8 9 10 |
# File 'lib/rhelm/subcommand/list.rb', line 8 def superseded @superseded end |
#time_format ⇒ Object (readonly)
Returns the value of attribute time_format.
8 9 10 |
# File 'lib/rhelm/subcommand/list.rb', line 8 def time_format @time_format end |
#uninstalled ⇒ Object (readonly)
Returns the value of attribute uninstalled.
8 9 10 |
# File 'lib/rhelm/subcommand/list.rb', line 8 def uninstalled @uninstalled end |
#uninstalling ⇒ Object (readonly)
Returns the value of attribute uninstalling.
8 9 10 |
# File 'lib/rhelm/subcommand/list.rb', line 8 def uninstalling @uninstalling end |
Instance Method Details
#cli_args ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/rhelm/subcommand/list.rb', line 54 def cli_args super.tap do |args| args << '--all' if all args << '--all-namespaces' if all_namespaces args << '--date' if date args << '--deployed' if deployed args << '--failed' if failed args << ['--filter', filter] if filter args << '--help' if help args << ['--max', max] if max args << ['--offset', offset] if offset args << ['--output', output] if output args << '--pending' if pending args << '--reverse' if reverse args << ['--selector', selector] if selector args << '--short' if short args << '--superseded' if superseded args << ['--time-format', time_format] if time_format args << '--uninstalled' if uninstalled args << '--uninstalling' if uninstalling end.flatten end |
#subcommand_name ⇒ Object
50 51 52 |
# File 'lib/rhelm/subcommand/list.rb', line 50 def subcommand_name 'ls' end |