Class: Migrant::Util::TemplateRenderer

Inherits:
Vagrant::Util::TemplateRenderer
  • Object
show all
Defined in:
lib/migrant/util/template_renderer.rb

Instance Method Summary collapse

Instance Method Details

#full_template_pathString

Returns the full path to the template, taking into accoun the gem directory and adding the ‘.erb` extension to the end.

Returns:

  • (String)


10
11
12
# File 'lib/migrant/util/template_renderer.rb', line 10

def full_template_path
  Migrant.source_root.join('templates', "#{template}.erb").to_s.squeeze("/")
end