cleanup not forced

This commit is contained in:
Andras Bacsai 2023-11-06 21:08:02 +01:00
parent ca0535c285
commit 358fbf6b3d

View File

@ -18,15 +18,18 @@
class Init extends Command
{
protected $signature = 'app:init';
protected $signature = 'app:init {--cleanup}';
protected $description = 'Cleanup instance related stuffs';
public function handle()
{
ray()->clearAll();
$cleanup = $this->option('cleanup');
if ($cleanup) {
$this->cleanup_stucked_resources();
$this->cleanup_ssh();
}
$this->cleanup_in_progress_application_deployments();
$this->cleanup_stucked_resources();
// $this->cleanup_ssh();
}
private function cleanup_ssh()