Sha256: 9189240f9f3ef4eb97dae560005041ed5f7d601e993cade87a3f149e446ea180

Contents?: true

Size: 473 Bytes

Versions: 9

Compression:

Stored size: 473 Bytes

Contents

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

  Contract Symbol, Hash => Any
  def call(template_name, options)
    template = template_store.get(template_name)

    result = reader.read(local_shell, template)

    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

9 entries across 9 versions & 1 rubygems

Version Path
kuber_kit-0.2.7 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.2.6 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.2.5 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.2.4 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.2.3 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.2.2 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.2.1 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.2.0 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.1.9 lib/kuber_kit/actions/template_reader.rb