Skip to content

Instantly share code, notes, and snippets.

@havvg
Created February 16, 2012 12:15
Show Gist options
  • Save havvg/1844432 to your computer and use it in GitHub Desktop.
Save havvg/1844432 to your computer and use it in GitHub Desktop.
Example un-wrapped php-cctrl
<?php
require_once('autoload.php');
$cctrl = new Cloudcontrol\Api();
$user = new Cloudcontrol\Authentication\User('[email protected]', 'not-to-be-posted');
$app = new Cloudcontrol\Entity\Application('ormigo');
$deployment = new Cloudcontrol\Entity\Deployment($app, 'stage');
$resource = new Cloudcontrol\Resource\Worker($cctrl, $user);
$worker = $resource->create($deployment, 'app/console', 'cctrl:cron');
var_dump($worker);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment