Add --dry-run option for getting curl commands
[shpub.git] / src / shpub / Config.php
index 2ca7d9adeea3c376196ebe0972fd313d53879ba0..f3ca5433d13a94904a6aeeae0148bafb28b9baf0 100644 (file)
@@ -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;
+    }
 }
 ?>