Sha256: 987a36b3e2c12c2956afd018d2a4d1cfbf75222d1e335f95be082ebcc68174ca
Contents?: true
Size: 492 Bytes
Versions: 6
Compression:
Stored size: 492 Bytes
Contents
require 'erb' module VagrantPlugins module Libvirt module Util module ErbTemplate # Taken from fog source. def to_xml template_name = nil erb = template_name || self.class.to_s.split("::").last.downcase path = File.join(File.dirname(__FILE__), "..", "templates", "#{erb}.xml.erb") template = File.read(path) ERB.new(template, nil, '-').result(binding) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems