Class: Kube::Helm::Instance

Inherits:
Object
  • Object
show all
Defined in:
lib/kube/helm/instance.rb

Instance Method Summary collapse

Instance Method Details

#call(&block) ⇒ Object

def initialize(kubeconfig: ENV)

@kubeconfig = kubeconfig

end



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/kube/helm/instance.rb', line 12

def call(&block)
  if block
    sb.instance_eval(&block)
  end

  #StringBuilder.new.tap do |sb|
  #  if block
  #    sb.instance_eval(&block)
  #  end
  #end
end

#run(string) ⇒ Object



24
25
26
# File 'lib/kube/helm/instance.rb', line 24

def run(string)
  Kube::Helm.run "#{string}"
end