lib/vagrant-parallels/provider.rb
# Return the state of Parallels virtual machine by actually
# querying PrlCtl.
#
# @return [Symbol]
Return the state of Parallels virtual machine by actually
querying PrlCtl.
Return the state of Parallels virtual machine by actually querying PrlCtl .
def state
        state_id = nil
        state_id = :not_created if !@driver.uuid
        state_id = @driver.read_state if !state_id
        state_id = :unknown if !state_id
        short = state_id.to_s.gsub('_', ' ')
        long  = I18n.t("vagrant_parallels.commands.status.#{state_id}")
        if state_id == :not_created
          state_id = Vagrant::MachineState::NOT_CREATED_ID
        end
        Vagrant::MachineState.new(state_id, short, long)
      end
def state state_id = nil state_id = :not_created if ! @driver . uuid state_id = @driver . read_state if ! state_id state_id = :unknown if ! state_id short = state_id . to_s . gsub ( '_' , ' ' ) long = I18n . t ( "vagrant_parallels.commands.status.#{state_id}" ) if state_id == :not_created state_id = Vagrant :: MachineState :: NOT_CREATED_ID end Vagrant :: MachineState . new ( state_id , short , long ) end
Return the state of Parallels virtual machine by actually
querying PrlCtl.
Return the state of Parallels virtual machine by actually querying PrlCtl .
# Determine the ID of the state here. # Translate into short/long descriptions # If machine is not created, then specify the special ID flag # Return the state
None
Symbol