class Fission::VMConfiguration

def parse_vm_config_file

configuration file, it will be represented in the Hash as an empty String.
the conf file is 'TRUE'). If a value is an empty string in the
All keys and values are represented as a String (even when the value in
Returns a Hash.

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

Examples:

Internal: Parses the configuration file (i.e. '.vmx')
def parse_vm_config_file
  File.readlines(@conf_file_location).inject({}) do |result, line|
    data = parse_line_data(line)
    result[data[0]] = (data[1].nil? ? '' : data[1])
    result
  end
end