Method: Beaker::Vcloud#initialize

Defined in:
lib/beaker/hypervisor/vcloud.rb

#initialize(vcloud_hosts, options) ⇒ Vcloud

Returns a new instance of Vcloud.



6
7
8
9
10
11
12
13
14
# File 'lib/beaker/hypervisor/vcloud.rb', line 6

def initialize(vcloud_hosts, options)
  @options = options
  @logger = options[:logger]
  @hosts = vcloud_hosts

  raise 'You must specify a datastore for vCloud instances!' unless @options['datastore']
  raise 'You must specify a folder for vCloud instances!' unless @options['folder']
  @vsphere_credentials = VsphereHelper.load_config(@options[:dot_fog])
end