famelo/surf-sharedhosting

There is no license information available for the latest version (dev-master) of this package.

Installs: 164

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 2

Open Issues: 1

Type:typo3-flow-package

dev-master 2015-06-30 12:12 UTC

This package is auto-updated.

Last update: 2024-10-05 18:51:54 UTC


README

<?php
use \TYPO3\Surf\Domain\Model\Workflow;
use \TYPO3\Surf\Domain\Model\Node;
use \TYPO3\Surf\Domain\Model\SimpleWorkflow;

$application = new \Famelo\Surf\SharedHosting\Application\Flow();
$application->setOption('repositoryUrl', 'git://git.typo3.org/FLOW3/Distributions/Base.git');
$application->setDeploymentPath('/foo/bar/');
$application->setOption('keepReleases', 20);

$application->setOption('composerCommandPath', '/foo/bar/composer.phar');

// Specify the hosting package
$application->setOption('hosting', 'DomainFactory/ManagedHosting');

// Set the default context
$application->setOption('defaultContext', 'Production');

$deployment->addApplication($application);

$workflow = new SimpleWorkflow();
$deployment->setWorkflow($workflow);

$node = new Node('example.com');
$node->setHostname('example.com');
$node->setOption('username', 'my-user');

$application->addNode($node);
$deployment->addApplication($application);
?>