Sha256: ad7cbce85b9e70635f0e1ebe533b059983a974f42f26982edcb58578e0383268

Contents?: true

Size: 441 Bytes

Versions: 73

Compression:

Stored size: 441 Bytes

Contents

class KuberKit::Actions::TemplateReader
  include KuberKit::Import[
    "shell.local_shell",
    "ui",
    template_reader: "template_reader.action_handler",
  ]

  Contract Symbol, Hash => Any
  def call(template_name, options)
    result = template_reader.call(local_shell, template_name)

    ui.print_info(template_name.to_s, result)

    true
  rescue KuberKit::Error => e
    ui.print_error("Error", e.message)
    
    false
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
kuber_kit-1.1.2 lib/kuber_kit/actions/template_reader.rb
kuber_kit-1.2.1 lib/kuber_kit/actions/template_reader.rb
kuber_kit-1.2.0 lib/kuber_kit/actions/template_reader.rb
kuber_kit-1.1.1 lib/kuber_kit/actions/template_reader.rb
kuber_kit-1.0.1 lib/kuber_kit/actions/template_reader.rb
kuber_kit-1.0.0 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.9.9 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.9.8 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.9.7 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.9.6 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.9.5 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.9.4 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.9.3 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.9.2 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.9.1 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.9.0 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.8.8 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.8.7 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.8.6 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.8.5 lib/kuber_kit/actions/template_reader.rb