LibCloud\Compute\Providers\Rackspace\RackspaceProvider::rebootNode PHP Метод

rebootNode() публичный Метод

public rebootNode ( Node $node ) : Guzzle\Http\Message\Response
$node LibCloud\Compute\Model\Node
Результат Guzzle\Http\Message\Response
    public function rebootNode(Node $node)
    {
        return $this->toServer($node)->reboot(ServerState::REBOOT_STATE_SOFT);
    }

Usage Example

 /**
  * @depends testListNodesWithId
  */
 public function testRebootNode($node)
 {
     $this->addMockSubscriber($this->getTestFilePath('Server'));
     $this->addMockSubscriber($this->getTestFilePath('Server_Meta'));
     $this->addMockSubscriber($this->getTestFilePath('Server_Reboot'));
     $r = $this->provider->rebootNode($node);
     $this->assertSame(202, $r->getStatusCode(), 'rebootNode returns the API response for a successful reboot');
 }