Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Projects
Groups
Snippets
Sign up now
Login
Sign in
Toggle navigation
Menu
Open sidebar
project
provision
Commits
73ea4467
Commit
73ea4467
authored
Sep 07, 2014
by
Grazyna Jaworska
Browse files
Backport provision_hosting_feature_enabled()
parent
584c2e90
Changes
1
Hide whitespace changes
Inline
Side-by-side
provision.drush.inc
View file @
73ea4467
...
...
@@ -439,3 +439,12 @@ function provision_load_critical($load = NULL, $threshold = NULL) {
}
return
(
$load
[
0
]
>
$threshold
);
}
/**
* Check whether a Hosting feature is enabled.
*/
function
provision_hosting_feature_enabled
(
$feature
)
{
$features
=
drush_get_option
(
'hosting_features'
,
array
());
return
array_key_exists
(
$feature
,
$features
)
&&
$features
[
$feature
];
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment