Class: VCenterConf
- Inherits:
-
Hash
- Object
- Hash
- VCenterConf
- Defined in:
- lib/vcenter_driver.rb
Overview
Holds vCenter configuration parameters
Constant Summary collapse
- DEFAULT_CONFIGURATION =
{ :delete_images => false, :vm_poweron_wait_default => 300, :debug_information => false }
Instance Method Summary collapse
-
#initialize ⇒ VCenterConf
constructor
A new instance of VCenterConf.
Constructor Details
#initialize ⇒ VCenterConf
Returns a new instance of VCenterConf.
50 51 52 53 54 55 56 57 58 59 |
# File 'lib/vcenter_driver.rb', line 50 def initialize replace(DEFAULT_CONFIGURATION) begin vcenterrc_path = "#{VAR_LOCATION}/remotes/etc/vmm/vcenter/vcenterrc" merge!(YAML.load_file(vcenterrc_path)) rescue StandardError => e STDERR.puts ("Couldn't load vcenterrc. \ Reason #{e.}.") end end |