Sha256: b5d2856b751022fec43399f9e3bbadd9371da4b32082369911e9182798f499a5

Contents?: true

Size: 384 Bytes

Versions: 8

Compression:

Stored size: 384 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)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
kuber_kit-0.1.7 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.1.6 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.1.5 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.1.4 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.1.3 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.1.2 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.1.1 lib/kuber_kit/actions/template_reader.rb
kuber_kit-0.1.0 lib/kuber_kit/actions/template_reader.rb