Added CommandExecutorInterface

This commit is contained in:
Corpsee 2014-05-09 15:23:30 +07:00
parent 2d52c8dd01
commit b3cf244944

View file

@ -0,0 +1,35 @@
<?php
namespace PHPCI\Helper;
use \PHPCI\Logging\BuildLogger;
interface CommandExecutorInterface
{
/**
* @param BuildLogger $logger
* @param string $rootDir
* @param bool $quiet
* @param bool $verbose
*/
public function __construct(BuildLogger $logger, $rootDir, &$quiet = false, &$verbose = false);
/**
* Executes shell commands. Accepts multiple arguments the first
* is the template and everything else is inserted in. c.f. sprintf
* @return bool Indicates success
*/
public function executeCommand();
/**
* Returns the output from the last command run.
*/
public function getLastOutput();
/**
* Find a binary required by a plugin.
* @param string $binary
* @return null|string
*/
public function findBinary($binary);
}