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
c1967c5a
Commit
c1967c5a
authored
Sep 06, 2014
by
Grazyna Jaworska
Browse files
Add little debugging markers.
parent
7e5f4744
Changes
1
Hide whitespace changes
Inline
Side-by-side
Provision/Config.php
View file @
c1967c5a
...
...
@@ -127,7 +127,7 @@ class Provision_Config {
if
(
!
empty
(
$templates
)
&&
is_array
(
$templates
))
{
foreach
(
$templates
as
$file
)
{
if
(
file_exists
(
$file
)
&&
is_readable
(
$file
))
{
drush_log
(
"Template loaded:
$file
"
);
drush_log
(
"Template loaded
A
:
$file
"
);
return
file_get_contents
(
$file
);
}
}
...
...
@@ -145,7 +145,7 @@ class Provision_Config {
$file
=
$base_dir
.
'/'
.
$this
->
template
;
if
(
file_exists
(
$file
)
&&
is_readable
(
$file
))
{
drush_log
(
"Template loaded:
$file
"
);
drush_log
(
"Template loaded
B
:
$file
"
);
return
file_get_contents
(
$file
);
}
...
...
@@ -205,8 +205,8 @@ class Provision_Config {
}
$status
=
provision_file
()
->
file_put_contents
(
$filename
,
$this
->
render_template
(
$template
,
$this
->
data
))
->
succeed
(
'Generated config '
.
(
empty
(
$this
->
description
)
?
$filename
:
$this
->
description
),
'success'
)
->
fail
(
'Could not generate '
.
(
empty
(
$this
->
description
)
?
$filename
:
$this
->
description
))
->
status
();
->
succeed
(
'Generated config
A
'
.
(
empty
(
$this
->
description
)
?
$filename
:
$this
->
description
),
'success'
)
->
fail
(
'Could not generate
A
'
.
(
empty
(
$this
->
description
)
?
$filename
:
$this
->
description
))
->
status
();
// Change the permissions of the file if needed
if
(
!
is_null
(
$this
->
mode
))
{
...
...
@@ -227,7 +227,7 @@ class Provision_Config {
// allow overriding w.r.t locking
function
file_put_contents
(
$filename
,
$text
)
{
provision_file
()
->
file_put_contents
(
$filename
,
$text
)
->
succeed
(
'Generated config '
.
(
empty
(
$this
->
description
)
?
$filename
:
$this
->
description
),
'success'
);
->
succeed
(
'Generated config
B
'
.
(
empty
(
$this
->
description
)
?
$filename
:
$this
->
description
),
'success'
);
}
/**
...
...
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