Class: Beaker::Hypervisor

Inherits:
Object
  • Object
show all
Defined in:
lib/beaker/hypervisor.rb

Direct Known Subclasses

Aixer, Blimper, Fusion, Solaris, Vagrant, Vcloud, Vsphere

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.create(type, hosts_to_provision, options, config) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/beaker/hypervisor.rb', line 8

def self.create type, hosts_to_provision, options, config
  @logger = options[:logger]
  @logger.notify("Beaker::Hypervisor, found some #{type} boxes to create") 
  case type
    when /aix/
      Beaker::Aixer.new hosts_to_provision, options, config
    when /solaris/
      Beaker::Solaris.new hosts_to_provision, options, config
    when /vsphere/
      Beaker::Vsphere.new hosts_to_provision, options, config
    when /fusion/
      Beaker::Fusion.new hosts_to_provision, options, config
    when /blimpy/
      Beaker::Blimper.new hosts_to_provision, options, config
    when /vcloud/
      Beaker::Vcloud.new hosts_to_provision, options, config
    when /vagrant/
      Beaker::Vagrant.new hosts_to_provision, options, config
    end
end

Instance Method Details

#configure(hosts) ⇒ Object



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