-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,114 @@ public static function getList(): array { | |
/** | ||
* @return array<mixed> | ||
*/ | ||
public static function getDefaults(?string $cloudApplicationUuid = NULL, ?string $cloudKey = NULL, ?string $cloudSecret = NULL, ?string $projectAccessTokenName = NULL, ?string $projectAccessToken = NULL, ?string $phpVersion = NULL): array { | ||
public static function getDefaults(?string $cloudApplicationUuid = NULL, ?string $cloudKey = NULL, ?string $cloudSecret = NULL, ?string $projectAccessTokenName = NULL, ?string $projectAccessToken = NULL, ?string $phpVersion = NULL, ?string $nodeVersion = NULL): array { | ||
return [ | ||
Check warning on line 20 in src/Command/CodeStudio/CodeStudioCiCdVariables.php GitHub Actions / Mutation Testing
|
||
[ | ||
Check warning on line 21 in src/Command/CodeStudio/CodeStudioCiCdVariables.php GitHub Actions / Mutation Testing
|
||
'key' => 'ACQUIA_APPLICATION_UUID', | ||
'masked' => TRUE, | ||
Check warning on line 23 in src/Command/CodeStudio/CodeStudioCiCdVariables.php GitHub Actions / Mutation Testing
|
||
'protected' => FALSE, | ||
Check warning on line 24 in src/Command/CodeStudio/CodeStudioCiCdVariables.php GitHub Actions / Mutation Testing
|
||
'value' => $cloudApplicationUuid, | ||
'variable_type' => 'env_var', | ||
], | ||
[ | ||
Check warning on line 28 in src/Command/CodeStudio/CodeStudioCiCdVariables.php GitHub Actions / Mutation Testing
|
||
'key' => 'ACQUIA_CLOUD_API_TOKEN_KEY', | ||
'masked' => TRUE, | ||
Check warning on line 30 in src/Command/CodeStudio/CodeStudioCiCdVariables.php GitHub Actions / Mutation Testing
|
||
'protected' => FALSE, | ||
Check warning on line 31 in src/Command/CodeStudio/CodeStudioCiCdVariables.php GitHub Actions / Mutation Testing
|
||
'value' => $cloudKey, | ||
'variable_type' => 'env_var', | ||
], | ||
[ | ||
Check warning on line 35 in src/Command/CodeStudio/CodeStudioCiCdVariables.php GitHub Actions / Mutation Testing
|
||
'key' => 'ACQUIA_CLOUD_API_TOKEN_SECRET', | ||
'masked' => TRUE, | ||
Check warning on line 37 in src/Command/CodeStudio/CodeStudioCiCdVariables.php GitHub Actions / Mutation Testing
|
||
'protected' => FALSE, | ||
Check warning on line 38 in src/Command/CodeStudio/CodeStudioCiCdVariables.php GitHub Actions / Mutation Testing
|
||
'value' => $cloudSecret, | ||
'variable_type' => 'env_var', | ||
], | ||
[ | ||
'key' => 'ACQUIA_GLAB_TOKEN_NAME', | ||
'masked' => TRUE, | ||
'protected' => FALSE, | ||
'value' => $projectAccessTokenName, | ||
'variable_type' => 'env_var', | ||
], | ||
[ | ||
'key' => 'ACQUIA_GLAB_TOKEN_SECRET', | ||
'masked' => TRUE, | ||
'protected' => FALSE, | ||
'value' => $projectAccessToken, | ||
'variable_type' => 'env_var', | ||
], | ||
[ | ||
'key' => 'PHP_VERSION', | ||
'masked' => FALSE, | ||
'protected' => FALSE, | ||
'value' => $phpVersion, | ||
'variable_type' => 'env_var', | ||
], | ||
[ | ||
'key' => 'NODE_VERSION', | ||
'masked' => FALSE, | ||
'protected' => FALSE, | ||
'value' => $nodeVersion, | ||
'variable_type' => 'env_var', | ||
], | ||
]; | ||
} | ||
|
||
/** | ||
* @return array<mixed> | ||
*/ | ||
public static function getDefaultsForNode(?string $cloudApplicationUuid = NULL, ?string $cloudKey = NULL, ?string $cloudSecret = NULL, ?string $projectAccessTokenName = NULL, ?string $projectAccessToken = NULL, ?string $nodeVersion = NULL): array { | ||
return [ | ||
[ | ||
'key' => 'ACQUIA_APPLICATION_UUID', | ||
'masked' => TRUE, | ||
'protected' => FALSE, | ||
'value' => $cloudApplicationUuid, | ||
'variable_type' => 'env_var', | ||
], | ||
[ | ||
'key' => 'ACQUIA_CLOUD_API_TOKEN_KEY', | ||
'masked' => TRUE, | ||
'protected' => FALSE, | ||
'value' => $cloudKey, | ||
'variable_type' => 'env_var', | ||
], | ||
[ | ||
'key' => 'ACQUIA_CLOUD_API_TOKEN_SECRET', | ||
'masked' => TRUE, | ||
'protected' => FALSE, | ||
'value' => $cloudSecret, | ||
'variable_type' => 'env_var', | ||
], | ||
[ | ||
'key' => 'ACQUIA_GLAB_TOKEN_NAME', | ||
'masked' => TRUE, | ||
'protected' => FALSE, | ||
'value' => $projectAccessTokenName, | ||
'variable_type' => 'env_var', | ||
], | ||
[ | ||
'key' => 'ACQUIA_GLAB_TOKEN_SECRET', | ||
'masked' => TRUE, | ||
'protected' => FALSE, | ||
'value' => $projectAccessToken, | ||
'variable_type' => 'env_var', | ||
], | ||
[ | ||
'key' => 'NODE_VERSION', | ||
'masked' => FALSE, | ||
'protected' => FALSE, | ||
'value' => $nodeVersion, | ||
'variable_type' => 'env_var', | ||
], | ||
]; | ||
} | ||
|
||
/** | ||
* @return array<mixed> | ||
*/ | ||
public static function getDefaultsForPhp(?string $cloudApplicationUuid = NULL, ?string $cloudKey = NULL, ?string $cloudSecret = NULL, ?string $projectAccessTokenName = NULL, ?string $projectAccessToken = NULL, ?string $phpVersion = NULL): array { | ||
return [ | ||
[ | ||
'key' => 'ACQUIA_APPLICATION_UUID', | ||
|