# File lib/fog/libvirt/models/compute/util/util.rb, line 28 def randomized_name "fog-#{(SecureRandom.random_number*10E14).to_i.round}" end
# File lib/fog/libvirt/models/compute/util/util.rb, line 20 def to_xml template_name = nil # figure out our ERB template filename 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
Generated with the Darkfish Rdoc Generator 2.