service = $service; $this->server = $service->server; } public function install(): void { $version = $this->service->version; $command = $this->getScript($this->service->name.'/install-'.$version.'.sh'); $this->server->ssh()->exec($command, 'install-'.$this->service->name.'-'.$version); $status = $this->server->systemd()->status($this->service->unit); $this->service->validateInstall($status); } }