Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
P
provision
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Drupal.org issue queue
Drupal.org issue queue
Security & Compliance
Security & Compliance
Dependency List
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
project
provision
Commits
2814c055
Commit
2814c055
authored
Apr 17, 2012
by
omega8cc
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '6.x-2.x' of git.drupal.org:project/provision into dev-nginx-6.x-2.x
parents
cdfdca92
d29ed174
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
example/Provision/Service/example/basic.php
example/Provision/Service/example/basic.php
+1
-1
platform/backup.provision.inc
platform/backup.provision.inc
+2
-2
No files found.
example/Provision/Service/example/basic.php
View file @
2814c055
...
...
@@ -115,7 +115,7 @@ class Provision_Service_example_basic extends Provision_Service_example {
* You could also choose to only conditionally pass values based on
* the parameters.
*/
$data
[
'example_current_time'
]
=
date
(
DATE_COOKIE
,
mk
time
());
$data
[
'example_current_time'
]
=
date
(
DATE_COOKIE
,
time
());
return
$data
;
}
...
...
platform/backup.provision.inc
View file @
2814c055
...
...
@@ -36,12 +36,12 @@ function drush_provision_drupal_provision_backup_validate($backup_file = NULL) {
}
if
(
!
$backup_file
)
{
$suggested
=
d
()
->
platform
->
server
->
backup_path
.
'/'
.
d
()
->
uri
.
'-'
.
date
(
"Ymd.His"
,
mk
time
())
.
'.tar.gz'
;
$suggested
=
d
()
->
platform
->
server
->
backup_path
.
'/'
.
d
()
->
uri
.
'-'
.
date
(
"Ymd.His"
,
time
())
.
'.tar.gz'
;
// Use format of mysite.com-2008-01-02, if already existing, add number.
while
(
is_file
(
$suggested
))
{
$count
++
;
$suggested
=
d
()
->
platform
->
server
->
backup_path
.
'/'
.
d
()
->
uri
.
'-'
.
date
(
'Ymd.His'
,
mk
time
())
.
'_'
.
$count
.
'.tar.gz'
;
$suggested
=
d
()
->
platform
->
server
->
backup_path
.
'/'
.
d
()
->
uri
.
'-'
.
date
(
'Ymd.His'
,
time
())
.
'_'
.
$count
.
'.tar.gz'
;
}
drush_set_option
(
'backup_file'
,
$suggested
);
}
...
...
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