Class: ForemanDebian::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/foreman_debian/template.rb

Defined Under Namespace

Classes: Storage

Instance Method Summary collapse

Constructor Details

#initialize(template_name) ⇒ Template

Returns a new instance of Template.



12
13
14
# File 'lib/foreman_debian/template.rb', line 12

def initialize(template_name)
  @template_name = template_name
end

Instance Method Details

#render(hash) ⇒ Object



16
17
18
# File 'lib/foreman_debian/template.rb', line 16

def render(hash)
  Storage.new(hash).render(@template_name)
end