Sha256: f972420ad4a773f4ad1320759c80661b57e4b2a006db8cc22cf847d4c1444247

Contents?: true

Size: 590 Bytes

Versions: 23

Compression:

Stored size: 590 Bytes

Contents

class KuberKit::ServiceReader::Reader
  include KuberKit::Import[
    "core.template_store",
    "core.context_helper_factory",
    "template_reader.reader",
    "preprocessing.text_preprocessor"
  ]

  Contract KuberKit::Shell::AbstractShell, KuberKit::Core::Service => Any
  def read(shell, service)
    template = template_store.get(service.template_name)

    context_helper = context_helper_factory.build_service_context(shell, service)

    template = reader.read(shell, template)

    result = text_preprocessor.compile(template, context_helper: context_helper)

    result
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
kuber_kit-0.3.8 lib/kuber_kit/service_reader/reader.rb
kuber_kit-0.3.7 lib/kuber_kit/service_reader/reader.rb
kuber_kit-0.3.6 lib/kuber_kit/service_reader/reader.rb
kuber_kit-0.3.5 lib/kuber_kit/service_reader/reader.rb
kuber_kit-0.3.4 lib/kuber_kit/service_reader/reader.rb
kuber_kit-0.3.3 lib/kuber_kit/service_reader/reader.rb
kuber_kit-0.3.2 lib/kuber_kit/service_reader/reader.rb
kuber_kit-0.3.1 lib/kuber_kit/service_reader/reader.rb
kuber_kit-0.3.0 lib/kuber_kit/service_reader/reader.rb
kuber_kit-0.2.9 lib/kuber_kit/service_reader/reader.rb
kuber_kit-0.2.8 lib/kuber_kit/service_reader/reader.rb
kuber_kit-0.2.7 lib/kuber_kit/service_reader/reader.rb
kuber_kit-0.2.6 lib/kuber_kit/service_reader/reader.rb
kuber_kit-0.2.5 lib/kuber_kit/service_reader/reader.rb
kuber_kit-0.2.4 lib/kuber_kit/service_reader/reader.rb
kuber_kit-0.2.3 lib/kuber_kit/service_reader/reader.rb
kuber_kit-0.2.2 lib/kuber_kit/service_reader/reader.rb
kuber_kit-0.2.1 lib/kuber_kit/service_reader/reader.rb
kuber_kit-0.2.0 lib/kuber_kit/service_reader/reader.rb
kuber_kit-0.1.9 lib/kuber_kit/service_reader/reader.rb