Class: VagrantPlugins::ProviderKvm::Util::KvmTemplateRenderer

Inherits:
TemplateRenderer
  • Object
show all
Defined in:
lib/vagrant-kvm/util/kvm_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)


14
15
16
# File 'lib/vagrant-kvm/util/kvm_template_renderer.rb', line 14

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