for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Rundeck\Resources;
use Rundeck\HttpClient;
/**
* Class Project /api/V/project/
* @package Rundeck\Resources
*/
class Project extends Resource
{
* @var array
protected $actions = [
"jobs" => ["xml"],
"jobs/export" => ["xml"],
"resources" => ["xml"],
"executions" => ["xml"],
"executions/running" => ["xml"],
"export" => ["xml"],
"history" => ["xml"],
];
* @param HttpClient $client
* @param string $name : Execution ID
public function __construct(HttpClient $client, $name = null)
$this->name = $name;
$this->client = $client;
}
* Get project info
* @param string $alt xml|json
* @return array
public function find($alt = "xml")
$response = $this->client->get('/project/'.$this->name, $alt);
return $response;
* Find all projects
* @param string $alt
public function findAll($alt = "xml")
$response = $this->client->get('/projects', $alt);
* Get project resource
* @param $name
public function resource($name, $alt = "xml")
$response = $this->client->get('/project/'.$this->name. '/resource/' .$name, $alt);