Skip to content
This repository has been archived by the owner on Jun 12, 2022. It is now read-only.

Commit

Permalink
Echo a message for each release as it's pruned.
Browse files Browse the repository at this point in the history
  • Loading branch information
warrickbayman committed Sep 14, 2020
1 parent 786d74a commit 61fe437
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/ReleaseService.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,18 @@ public function delete(array $ids): void
{
$commands = [];
foreach ($ids as $id) {
$commands[] = 'rm -rf '.$this->server->path('releases').'/'.$id;
$label =
$commands[] = [
'echo "Purging release '.$id.'"',
'rm -rf '.$this->server->path('releases').'/'.$id,
];
}

$command = implode(' && ', $commands);
$command = implode(' && ', Arr::flatten($commands));

$task = new Task($command, $this->server);

(new Ssh($task))->run();
(new Ssh($task))->tty()->run();
}

/**
Expand Down

0 comments on commit 61fe437

Please sign in to comment.