public static function start($name)
    {
        // Check if machine is running.
        $status = self::status($name);

        if ($status == self::STOPPED) {
            // If not, try to start it.
            return self::runCommand('start', [$name])->isSuccessful();
        }

        return $status == Machine::RUNNING;
    }
public static function start($name)
    {
        // Check if machine is running.
        $status = self::status($name);

        if ($status == self::STOPPED) {
            // If not, try to start it.
            return self::runCommand('start', [$name])->isSuccessful();
        }

        return $status == Machine::RUNNING;
    }
public static function start ( $ name ) { // Check if machine is running. $ status = self :: status ( $ name ) ; if ( $ status == self :: STOPPED ) { // If not, try to start it. return self :: runCommand ( 'start' , [ $ name ] ) -> isSuccessful ( ) ; } return $ status == Machine :: RUNNING ; }
Start a machine.

@param $name
@return bool
@throws \Exception
Start a machine .