Class: KuberKit::ServiceReader::Reader
- Defined in:
- lib/kuber_kit/service_reader/reader.rb
Instance Method Summary collapse
Instance Method Details
#read(shell, service) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/kuber_kit/service_reader/reader.rb', line 10 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 |