Class: Kubes::Kubectl::Args::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/kubes/kubectl/args/base.rb

Direct Known Subclasses

Kustomize, Standard

Instance Method Summary collapse

Constructor Details

#initialize(name, options = {}) ⇒ Base

Returns a new instance of Base.



3
4
5
# File 'lib/kubes/kubectl/args/base.rb', line 3

def initialize(name, options={})
  @name, @options = name.to_s, options
end

Instance Method Details

#argsObject



7
8
9
10
# File 'lib/kubes/kubectl/args/base.rb', line 7

def args
  meth = "#{@name}_args" # IE: apply_args
  send(meth)
end