X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/e4bedda9ac3854ceb3d7b88a83155558e9ea6062..613d09d06d7bab3c6d91fd1b5b231e54c7304480:/src/shpub/Config.php diff --git a/src/shpub/Config.php b/src/shpub/Config.php index c9ebb4d..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'])) { @@ -88,10 +90,10 @@ class Config } foreach ($this->hosts as $key => $host) { if ($host->default) { - return $host; + 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; + } } ?>