Created
February 16, 2012 12:15
-
-
Save havvg/1844432 to your computer and use it in GitHub Desktop.
Example un-wrapped php-cctrl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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