<?php

namespace App\Provisioning\Steps\Host;

use App\Models\ProvisioningRun;
use App\Provisioning\StepResult;

class CompleteHostOnboarding extends HostStep
{
    public function key(): string
    {
        return 'complete_host_onboarding';
    }

    public function execute(ProvisioningRun $run): StepResult
    {
        $this->host($run)->update(['status' => 'active']);

        return StepResult::advance();
    }
}
