for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Lookyman\Rundeck\Api\Endpoints\Scheduler;
use GuzzleHttp\Promise\PromiseInterface;
use Lookyman\Rundeck\Api\Client;
use GuzzleHttp\Psr7\Request;
class Scheduler
{
/**
* @var Client
*/
private $client;
* @param Client $client
public function __construct(Client $client)
$this->client = $client;
}
* @param array $params
* @return PromiseInterface
public function takeover(array $params = []): PromiseInterface
return $this->client->getConfiguration()->getGuzzle()->sendAsync(
new Request('PUT', $this->client->getConfiguration()->getBaseUri() . '/scheduler/takeover', [], $this->client->getConfiguration()->getFormat()->formatParams($params))
);
* @return Server
public function server(): Server
return new Server($this->client);
public function jobs(): PromiseInterface
new Request('GET', $this->client->getConfiguration()->getBaseUri() . '/scheduler/jobs')