for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Common step for cf commands with no arguments
*/
namespace Graviton\Deployment\Steps\CloudFoundry;
use Graviton\Deployment\Steps\StepInterface;
* @author List of contributors <https://github.com/libgraviton/deploy-scripts/graphs/contributors>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @link http://swisscom.ch
abstract class AbstractCommonStep extends AbstractStep
{
/** @var string */
private $slice;
private $applicationName;
/** @var string Name of the step to be registered. */
protected static $stepName;
*
* @param array $configuration Current application configuration.
* @param string $applicationName Name of the CF-application to be checked
* @param string $slice deployment location in blue/green deployment.
* @link http://martinfowler.com/bliki/BlueGreenDeployment.html
public function __construct(array $configuration, $applicationName, $slice)
parent::__construct($configuration);
$this->slice = $slice;
$this->applicationName = $applicationName;
}
* returns the command
* @return array
public function getCommand()
return array(
$this->configuration['cf_bin'],
static::$stepName,
$this->applicationName . '-' . $this->slice
);