Implement Keystone environment deployments
This commit is contained in:
@@ -14,7 +14,7 @@ class CreateServiceCommand extends Command
|
||||
|
||||
protected $description = 'Create a service';
|
||||
|
||||
public function handle()
|
||||
public function handle(): void
|
||||
{
|
||||
$serverId = $this->components->ask('Enter the server ID');
|
||||
$server = Server::find($serverId);
|
||||
@@ -26,7 +26,7 @@ class CreateServiceCommand extends Command
|
||||
}
|
||||
|
||||
$serviceType = $this->components->choice('select the service you want to install', [
|
||||
'postgres-17',
|
||||
'postgres-18',
|
||||
]);
|
||||
|
||||
$serviceName = $this->components->ask('Enter the service name');
|
||||
@@ -36,7 +36,7 @@ class CreateServiceCommand extends Command
|
||||
server: $server,
|
||||
name: $serviceName,
|
||||
category: ServiceCategory::DATABASE,
|
||||
type: ServiceType::tryFrom($type),
|
||||
type: ServiceType::from($type),
|
||||
version: $version,
|
||||
);
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ class GenerateJSEnums extends Command
|
||||
|
||||
public function handle(): int
|
||||
{
|
||||
$enums = base_path('app/enums');
|
||||
$enums = app_path('Enums');
|
||||
|
||||
$this->load($enums);
|
||||
|
||||
@@ -87,7 +87,7 @@ class GenerateJSEnums extends Command
|
||||
|
||||
// Skip format, JS date formats are different to PHP ones.
|
||||
if ($name !== 'Format') {
|
||||
file_put_contents(base_path('resources/js/Enums/'.$name.'.js'), $js);
|
||||
file_put_contents(resource_path('js/enums/'.$name.'.js'), $js);
|
||||
$this->info('Stored '.$enum);
|
||||
} else {
|
||||
$this->info('Skipped '.$name.'s');
|
||||
|
||||
Reference in New Issue
Block a user