lookyman/rundeck-api

Rundeck API wrapper

dev-master 2016-12-13 15:22 UTC

This package is auto-updated.

Last update: 2024-04-12 03:58:10 UTC


README

Build Status Scrutinizer Code Quality Coverage Status Downloads Latest stable

$configuration = new \Lookyman\Rundeck\Api\Configuration(
	new \GuzzleHttp\Client(),
	'https://rundeck.mydomain.com/api/17',
	new \Lookyman\Rundeck\Api\Authentication\TokenHeaderAuthentication('apitoken'),
	new \Lookyman\Rundeck\Api\Format\JsonFormat()
);

$client = new \Lookyman\Rundeck\Api\Client($configuration);

$client
	->project()
	->job()
	->list('MyProject')
	->then(function (\Psr\Http\Message\ResponseInterface $response) {
		echo (string) $response->getBody();	
	})
	->wait();