diff --git a/src/Refresher.php b/src/Refresher.php index 3aaf2b4..cc713cd 100644 --- a/src/Refresher.php +++ b/src/Refresher.php @@ -95,7 +95,7 @@ class Refresher if ($k == rtrim($oo[0],':')) { $h = str_ends_with($oo[0],':'); } elseif ($k == rtrim($oo[1],':')) { - $h = str_ends_with($oo[0],':'); + $h = str_ends_with($oo[1],':'); } if ($h !== null) { $parsed[$o] = $h ? $v : true; @@ -293,7 +293,7 @@ class Refresher public function doUpdate() { $this->log->append("Pulling updated images..."); - $this->exec("docker-compose pull -q"); + $this->exec("docker-compose pull --quiet"); if (!$this->options['pull']) { $this->log->append("Refreshing updated containers..."); $this->exec("docker-compose up -d"); @@ -327,7 +327,7 @@ class Refresher $msg = "Deploying updated containers:\n* ".join("\n* ", $images); foreach ($this->hooks as $hook) { - $hook->sendMessage($msg); + $hook->sendMessage($msg, []); } } @@ -348,7 +348,7 @@ class Refresher private function exec(string $cmdl) { - $this->log->append("$ {$cmdl}"); + $this->log->append("\$ {$cmdl}"); $fd = popen($cmdl." 2>&1","r"); while (!feof($fd)) { $s = rtrim(fgets($fd)); diff --git a/tools/pharlite b/tools/pharlite new file mode 100755 index 0000000..0f51177 Binary files /dev/null and b/tools/pharlite differ