X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/ef34a25776877dbabaf19e36b162698071dd6bd2..a460539284aca97046cfd0b46d2c6dd832b43c39:/src/shpub/Config.php diff --git a/src/shpub/Config.php b/src/shpub/Config.php index 2ca7d9a..f3ca543 100644 --- a/src/shpub/Config.php +++ b/src/shpub/Config.php @@ -14,6 +14,8 @@ class Config public $debug = false; + public $dryRun = false; + protected function getConfigFilePath() { if (!isset($_SERVER['HOME'])) { @@ -91,7 +93,7 @@ class Config return $key; } } - + reset($this->hosts); return key($this->hosts); } @@ -121,5 +123,10 @@ class Config { $this->debug = $debug; } + + public function setDryRun($dryRun) + { + $this->dryRun = $dryRun; + } } ?>