Skip to content

Commit

Permalink
Updated the command names for the beta release
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrancodes committed Oct 4, 2023
1 parent 1212a04 commit c5588b2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,16 @@
use App\Services\Forge\Pipeline\UpdateEnvironmentVariables;
use App\Traits\Outputifier;
use Illuminate\Support\Facades\Pipeline;
use Illuminate\Support\Facades\URL;
use LaravelZero\Framework\Commands\Command;

class ShipCommand extends Command
class ProvisionCommand extends Command
{
use Outputifier;

protected $signature = 'ship';
protected $signature = 'provision';

protected $description = 'Prepares the preview environment for your project.';
protected $description = 'Prepare and deploy a testable preview environment on a new site.';

public function handle(ForgeService $service): void
{
Expand All @@ -57,6 +58,9 @@ public function handle(ForgeService $service): void
RunOptionalCommands::class,
EnsureJobScheduled::class,
])
->then(fn () => $this->success('Provision complete!'));
->then(function () use ($service) {
$this->success('Provisioning complete! Your environment is now set up and ready to use.');
$this->success('www.' . $service->site->name);
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
use Illuminate\Support\Facades\Pipeline;
use LaravelZero\Framework\Commands\Command;

class TerminateCommand extends Command
class TearDownCommand extends Command
{
use Outputifier;

protected $signature = 'terminate';
protected $signature = 'teardown';

protected $description = 'Terminates the preview environment site.';
protected $description = 'Removes the provisioned environment, reversing the setup process.';

public function handle(ForgeService $service): void
{
Expand All @@ -43,6 +43,6 @@ public function handle(ForgeService $service): void
RemoveDatabaseUser::class,
DestroySite::class,
])
->then(fn () => $this->success('Provision complete!'));
->then(fn () => $this->success('Environment teardown successful! All provisioned resources have been removed.'));
}
}

0 comments on commit c5588b2

Please sign in to comment.