Method: VCenterConf#initialize
- Defined in:
- lib/vcenter_driver.rb
#initialize ⇒ VCenterConf
Returns a new instance of VCenterConf.
58 59 60 61 62 63 64 65 66 67 |
# File 'lib/vcenter_driver.rb', line 58 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.message}.") end end |