Class: KuberKit::TemplateReader::Renderer

Inherits:
Object
  • Object
show all
Defined in:
lib/kuber_kit/template_reader/renderer.rb

Instance Method Summary collapse

Instance Method Details

#call(shell, template_name, context_helper:) ⇒ Object



12
13
14
15
16
# File 'lib/kuber_kit/template_reader/renderer.rb', line 12

def call(shell, template_name, context_helper:)
  template = template_store.get(template_name)
  template_text = template_reader.read(shell, template)
  text_preprocessor.compile(template_text, context_helper: context_helper)
end