X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/cec131d5363dee47eed339881c1043c404094fb7..a460539284aca97046cfd0b46d2c6dd832b43c39:/src/shpub/Config.php diff --git a/src/shpub/Config.php b/src/shpub/Config.php index d41e45d..f3ca543 100644 --- a/src/shpub/Config.php +++ b/src/shpub/Config.php @@ -12,6 +12,10 @@ class Config */ public $host; + public $debug = false; + + public $dryRun = false; + protected function getConfigFilePath() { if (!isset($_SERVER['HOME'])) { @@ -86,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); } @@ -114,5 +118,15 @@ class Config } return '"' . $val . '"'; } + + public function setDebug($debug) + { + $this->debug = $debug; + } + + public function setDryRun($dryRun) + { + $this->dryRun = $dryRun; + } } ?>