Sha256: f8b0686288e76cb96903a8bbe1492a6fe65d4e46e89c00b1402d84c2bcc4a5da
Contents?: true
Size: 692 Bytes
Versions: 39
Compression:
Stored size: 692 Bytes
Contents
class KuberKit::Core::Templates::TemplateStore def add(template) store.add(template.name, template) end def get(template_name) template = get_from_configuration(template_name) || get_global(template_name) template end def get_global(template_name) store.get(template_name) end def get_from_configuration(template_name) templates = KuberKit.current_configuration.templates templates[template_name] end def reset! store.reset! end def exists?(template_name) store.exists?(template_name) end private def store @@store ||= KuberKit::Core::Store.new(KuberKit::Core::Templates::AbstractTemplate) end end
Version data entries
39 entries across 39 versions & 1 rubygems