def build_config
      conf = micro # returns {} if there isn't a saved config

      override(conf, :vmx, true) do
        locate_vmx(McfCommand.platform)
      end

      override(conf, :vmrun, true) do
        CFMicro::VMrun.locate(McfCommand.platform)
      end

      override(conf, :password) do
        ask("Please enter your MCF VM password (vcap user) password", :echo => "*")
      end

      conf[:platform] = McfCommand.platform

      conf
    end
def build_config
      conf = micro # returns {} if there isn't a saved config

      override(conf, :vmx, true) do
        locate_vmx(McfCommand.platform)
      end

      override(conf, :vmrun, true) do
        CFMicro::VMrun.locate(McfCommand.platform)
      end

      override(conf, :password) do
        ask("Please enter your MCF VM password (vcap user) password", :echo => "*")
      end

      conf[:platform] = McfCommand.platform

      conf
    end
Returns the configuration needed to run the micro related subcommands.
 First loads saved config from file (if there is any), then overrides
 loaded values with command line arguments, and finally tries to guess
 in case neither was used:
   vmx       location of micro.vmx file
   vmrun     location of vmrun command
   password  password for vcap user (in the guest vm)
   platform  current platform