Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
provision
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
provision
Commits
4c0175e4
Commit
4c0175e4
authored
Nov 28, 2008
by
Adrian Rossouw
Committed by
adrian
Nov 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce provision_get_option for times when drush_get_option is unavailable
parent
397a885f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
provision.inc
provision.inc
+11
-0
No files found.
provision.inc
View file @
4c0175e4
...
...
@@ -638,3 +638,14 @@ function provision_exec($cmd, &$data) {
}
};
/**
* A wrapper for drush_get_option for when it is not present
*/
function
provision_get_option
(
$option
,
$default
)
{
if
(
function_exists
(
'drush_get_option'
))
{
return
call_user_func
(
'drush_get_option'
,
$option
,
$default
);
}
else
{
return
$default
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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