git.cweiske.de
/
shpub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Talk about installation and --dry-run
[shpub.git]
/
src
/
shpub
/
Config.php
diff --git
a/src/shpub/Config.php
b/src/shpub/Config.php
index c9ebb4d783655e1d1544286be2b86f47a5b612fd..f3ca5433d13a94904a6aeeae0148bafb28b9baf0 100644
(file)
--- a/
src/shpub/Config.php
+++ b/
src/shpub/Config.php
@@
-14,6
+14,8
@@
class Config
public $debug = false;
public $debug = false;
+ public $dryRun = false;
+
protected function getConfigFilePath()
{
if (!isset($_SERVER['HOME'])) {
protected function getConfigFilePath()
{
if (!isset($_SERVER['HOME'])) {
@@
-88,10
+90,10
@@
class Config
}
foreach ($this->hosts as $key => $host) {
if ($host->default) {
}
foreach ($this->hosts as $key => $host) {
if ($host->default) {
- return $
host
;
+ return $
key
;
}
}
}
}
-
+
reset($this->hosts);
return key($this->hosts);
}
reset($this->hosts);
return key($this->hosts);
}
@@
-121,5
+123,10
@@
class Config
{
$this->debug = $debug;
}
{
$this->debug = $debug;
}
+
+ public function setDryRun($dryRun)
+ {
+ $this->dryRun = $dryRun;
+ }
}
?>
}
?>