Class | Fission::VMConfiguration |
In: |
lib/fission/vm_configuration.rb
|
Parent: | Object |
Internal: Creates a new VMConfiguration object. This accepts a VM object
vm - An instance of VM
Examples:
Fission::VMConfiguration.new @my_vm
Returns a new VMConfiguration object
Internal: Gathers the the configuration data for the VM. This essentially parses the key/value pairs from the configuration file (.vmx) into a Hash.
Exaples:
@vm_config.config_data.data # => { 'memsize' => '384', 'ethernet0.present' => 'TRUE',... }
Returns a Response object with the result. If successful, the Response‘s data attribute will be a Hash. All keys and values are represented as a String (even when the value in the configuration file is ‘TRUE’). If a value is an empty string in the configuration file, it will be represented in the Hash as an empty String. If there is an error, an unsuccessful Response will be returned.