site = $site; $this->branch = $branch; } /** * @throws Throwable */ public function handle(): void { $this->site->server->ssh()->exec( new UpdateBranchCommand( $this->site->path, $this->branch ), 'update-branch', $this->site->id ); $this->site->branch = $this->branch; $this->site->save(); } public function failed(): void { } }