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



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/kube/helm/instance.rb', line 6

def call(&block)
  StringBuilder.new.tap do |builder|
    builder.concat_handler = Kube::Ctl::Concat

    if block_given?
      builder.wrap(&block)
    else
      builder
    end
  end
end

#run(string) ⇒ Object



18
19
20
# File 'lib/kube/helm/instance.rb', line 18

def run(string)
  Kube::Helm.run(string.to_s)
end