Class: Marabunta::Hypervisor::KvmDomain
- Inherits:
-
Object
- Object
- Marabunta::Hypervisor::KvmDomain
- Defined in:
- lib/marabunta/kvm.rb
Class Method Summary collapse
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(disk) ⇒ KvmDomain
constructor
A new instance of KvmDomain.
Constructor Details
#initialize(disk) ⇒ KvmDomain
Returns a new instance of KvmDomain.
44 45 46 47 48 49 |
# File 'lib/marabunta/kvm.rb', line 44 def initialize(disk) @uuid = UUID.randomUUID.to_s @name = File.basename(disk) @volume_path = disk # TODO: allow more configuration options end |
Class Method Details
Instance Method Details
#create ⇒ Object
51 52 53 54 |
# File 'lib/marabunta/kvm.rb', line 51 def create template = ERB.new(File.read(File.('../kvm_domain.erb', __FILE__))) template.result(binding) end |