protected function getServer(TaskContainer $container)
    {
        if ($this->argument('name')) {
            return $container->getServer($this->argument('name'));
        } elseif ($container->hasOneServer()) {
            return $container->getFirstServer();
        } else {
            throw new \InvalidArgumentException('Please provide a server name.');
        }
    }
protected function getServer(TaskContainer $container)
    {
        if ($this->argument('name')) {
            return $container->getServer($this->argument('name'));
        } elseif ($container->hasOneServer()) {
            return $container->getFirstServer();
        } else {
            throw new \InvalidArgumentException('Please provide a server name.');
        }
    }
protected function getServer ( TaskContainer $ container ) { if ( $ this -> argument ( 'name' ) ) { return $ container -> getServer ( $ this -> argument ( 'name' ) ) ; } elseif ( $ container -> hasOneServer ( ) ) { return $ container -> getFirstServer ( ) ; } else { throw new \ InvalidArgumentException ( 'Please provide a server name.' ) ; } }
Get the server from the task container.

@param  \Laravel\Envoy\TaskContainer  $container
@throws \InvalidArgumentException
@return string
Get the server from the task container .