Class: Beaker::Hypervisor
- Inherits:
-
Object
- Object
- Beaker::Hypervisor
show all
- Defined in:
- lib/beaker/hypervisor.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.create(type, hosts_to_provision, options) ⇒ Object
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/beaker/hypervisor.rb', line 8
def self.create(type, hosts_to_provision, options)
@logger = options[:logger]
@logger.notify("Beaker::Hypervisor, found some #{type} boxes to create")
hyper_class = case type
when /aix/
Beaker::Aixer
when /solaris/
Beaker::Solaris
when /vsphere/
Beaker::Vsphere
when /fusion/
Beaker::Fusion
when /blimpy/
Beaker::Blimper
when /vcloud/
if options['pooling_api']
Beaker::VcloudPooled
else
Beaker::Vcloud
end
when /vagrant/
Beaker::Vagrant
end
hypervisor = hyper_class.new(hosts_to_provision, options)
hypervisor.provision
hypervisor
end
|
Instance Method Details
4
5
6
|
# File 'lib/beaker/hypervisor.rb', line 4
def configure(hosts)
@logger.debug "No post-provisioning configuration necessary for #{self.class.name} boxes"
end
|
#provision ⇒ Object
37
38
39
|
# File 'lib/beaker/hypervisor.rb', line 37
def provision
nil
end
|