Bugfixes, added tools
* Added missing parameter for hook invocation * Added pharlite for building fresh.phar
This commit is contained in:
parent
ec1659e96d
commit
0cf2380b7e
@ -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));
|
||||
|
BIN
tools/pharlite
Executable file
BIN
tools/pharlite
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user