Skip to content
Snippets Groups Projects
Commit b904287b authored by hahn's avatar hahn
Browse files

short array syntax

parent 35463204
No related branches found
No related tags found
1 merge request!195534 add docker
...@@ -72,18 +72,18 @@ return [ ...@@ -72,18 +72,18 @@ return [
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
'versionsToKeep' => 10, // for cleanup: keep n unused versions 'versionsToKeep' => 10, // for cleanup: keep n unused versions
'builtsToKeep' => 3, 'builtsToKeep' => 3,
'build' => array( 'build' => [
'env' => 'export RVMSCRIPT="/usr/local/rvm/scripts/rvm";', 'env' => 'export RVMSCRIPT="/usr/local/rvm/scripts/rvm";',
'hooks' => array( 'hooks' => [
'build-postclone' => 'hooks/onbuild-postclone', 'build-postclone' => 'hooks/onbuild-postclone',
'build-precompress' => 'hooks/onbuild', 'build-precompress' => 'hooks/onbuild',
), ],
), ],
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// sync of archives // sync of archives
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
'mirrorPackages' => array( 'mirrorPackages' => [
/* /*
// (1) // (1)
...@@ -102,7 +102,7 @@ return [ ...@@ -102,7 +102,7 @@ return [
'target' => 'copy-deployment@software.example.com:/var/www/data-ciserver', 'target' => 'copy-deployment@software.example.com:/var/www/data-ciserver',
), ),
*/ */
), ],
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// plugins // plugins
...@@ -146,23 +146,23 @@ return [ ...@@ -146,23 +146,23 @@ return [
// TODO: functionality to be removed?! // TODO: functionality to be removed?!
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
'foreman' => array( 'foreman__' => [
'api'=>'https://foreman.example.com/', // with ending "/" 'api'=>'https://foreman.example.com/', // with ending "/"
'user'=>'ci-server', 'user'=>'ci-server',
'password'=>'ciserver_password_here', 'password'=>'ciserver_password_here',
'ignore-ssl-error'=>true, 'ignore-ssl-error'=>true,
// 'varname-replace'=>'ci-replacement', // 'varname-replace'=>'ci-replacement',
), ],
// where to store project data // where to store project data
'projects' => array( 'projects' => [
'json' => array( 'json' => [
'active' => true, 'active' => true,
), ],
'ldap' => array( 'ldap' => [
'active' => false, 'active' => false,
), ],
), ],
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
]; ];
\ No newline at end of file
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
* *
*/ */
return array( return [
"all" => array( "all" => [
"page_login" "page_login"
), ],
"authenticated" => array( "authenticated" => [
"page_overview", "page_overview",
"page_accept", "page_accept",
...@@ -34,10 +34,10 @@ return array( ...@@ -34,10 +34,10 @@ return array(
"project-action-overview", "project-action-overview",
"project-action-phase", "project-action-phase",
"project-action-setup", "project-action-setup",
), ],
"admin" => array( "admin" => [
"page_accept", "page_accept",
"page_build", "page_build",
...@@ -63,16 +63,16 @@ return array( ...@@ -63,16 +63,16 @@ return array(
"project-action-phase", "project-action-phase",
"project-action-setup", "project-action-setup",
"project-action-setup-edit-replacements", "project-action-setup-edit-replacements",
), ],
// ----- wenn es mal eine feinere Granulierung braucht, muss man eine // ----- wenn es mal eine feinere Granulierung braucht, muss man eine
// User-Admin programmieren // User-Admin programmieren
/* /*
"authenticated_" => array( "authenticated_" => [
"page_overview", "page_overview",
), ],
"developer_" => array( "developer_" => [
"page_build", "page_build",
"page_cleanup", "page_cleanup",
"page_setup", "page_setup",
...@@ -85,15 +85,15 @@ return array( ...@@ -85,15 +85,15 @@ return array(
"project-action-overview", "project-action-overview",
"project-action-phase", "project-action-phase",
"project-action-setup", "project-action-setup",
), ],
"projectmanager_" => array( "projectmanager_" => [
"project-action-default", "project-action-default",
"project-action-accept-preview", "project-action-accept-preview",
"project-action-accept-stage", "project-action-accept-stage",
// "project-action-deploy", // "project-action-deploy",
"project-action-overview", "project-action-overview",
"project-action-phase", "project-action-phase",
), ],
*/ */
); ];
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment