class Fission::VMConfiguration

def config_data

If there is an error, an unsuccessful Response will be returned.
configuration file, it will be represented in the Hash as an empty String.
configuration file is 'TRUE'). If a value is an empty string in the
values are represented as a String (even when the value in the
If successful, the Response's data attribute will be a Hash. All keys and
Returns a Response object with the result.

# => { 'memsize' => '384', 'ethernet0.present' => 'TRUE',... }
@vm_config.config_data.data

Exaples:

parses the key/value pairs from the configuration file (.vmx) into a Hash.
Internal: Gathers the the configuration data for the VM. This essentially
def config_data
  return Response.new :code => 1, :message => 'VM does not exist' unless @vm.exists?
  conf_file_response = @vm.conf_file
  return conf_file_response unless conf_file_response.successful?
  @conf_file_location = conf_file_response.data
  Response.new :code => 0, :data => parse_vm_config_file
end