mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
MINOR Added "verbose" flag to SilverStripeBuildTask
This commit is contained in:
parent
23f5340c85
commit
2215f97afc
@ -10,7 +10,13 @@ All code covered by the BSD license located at http://silverstripe.org/bsd-licen
|
||||
* @author marcus
|
||||
*/
|
||||
abstract class SilverStripeBuildTask extends Task {
|
||||
protected $cleanupEnv = false;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*/
|
||||
protected $verbose = false;
|
||||
|
||||
protected $cleanupEnv = false;
|
||||
|
||||
protected function configureEnvFile() {
|
||||
// fake the _ss_environment.php file for the moment
|
||||
@ -65,6 +71,9 @@ TEXT;
|
||||
function exec($cmd, $returnContent = false, $ignoreError = false) {
|
||||
$ret = null;
|
||||
$return = null;
|
||||
|
||||
if($this->verbose) $this->log($cmd);
|
||||
|
||||
if ($returnContent) {
|
||||
$ret = shell_exec($cmd);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user