/[drupal]/contributions/modules/provision/provision.path.inc
ViewVC logotype

Log of /contributions/modules/provision/provision.path.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Tag:

Revision 1.28 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Oct 1 20:41:50 2009 UTC (8 weeks, 1 day ago) by anarcat
Branch: MAIN
CVS Tags: DRUPAL-6--0-4-ALPHA2, DRUPAL-6--0-4-ALPHA3, HEAD
Changes since 1.27: +11 -6 lines
Diff to previous 1.27
make switch_path work if one of the paths is missing, return proper error values

Revision 1.27 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Aug 26 01:18:38 2009 UTC (3 months ago) by anarcat
Branch: MAIN
CVS Tags: DRUPAL-6--0-3, DRUPAL-6--0-4-ALPHA1
Changes since 1.26: +4 -3 lines
Diff to previous 1.26
#559448 - handle errors from tar extractions properly

Revision 1.26 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jul 27 17:04:16 2009 UTC (4 months ago) by anarcat
Branch: MAIN
CVS Tags: DRUPAL-6--0-3-RC3, DRUPAL-6--0-3-RC4
Changes since 1.25: +30 -29 lines
Diff to previous 1.25
#529382 - handle properly arbitrarly long error messages in chmod by implementing the recursive mode natively

Revision 1.25 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jul 1 22:58:18 2009 UTC (4 months, 3 weeks ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-6--0-3-RC1, DRUPAL-6--0-3-RC2
Changes since 1.24: +2 -5 lines
Diff to previous 1.24
Fixed an error with provision verify i introduced alongside the chmod_recursive path function

Revision 1.24 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jun 30 01:28:53 2009 UTC (4 months, 4 weeks ago) by adrian
Branch: MAIN
Changes since 1.23: +75 -10 lines
Diff to previous 1.23
Added chmod_recursive, chown_recursive and chgrp_recursive to provision_path, and also added -p to the tarball creation and extraction, to preserve permissions.

Revision 1.23 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jun 8 19:10:33 2009 UTC (5 months, 2 weeks ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-6--0-2
Changes since 1.22: +5 -5 lines
Diff to previous 1.22
Replace some old constants with strings

Revision 1.22 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Mar 20 16:13:24 2009 UTC (8 months, 1 week ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-5--0-2-ALPHA1, DRUPAL-6--0-2-BETA1, DRUPAL-6--0-2-RC1
Changes since 1.21: +4 -4 lines
Diff to previous 1.21
#407334 - Refactor to use the drush_context API instead of passing a reference to the $args global

Revision 1.21 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Feb 22 23:11:24 2009 UTC (9 months ago) by adrian
Branch: MAIN
Changes since 1.20: +5 -5 lines
Diff to previous 1.20
#374797 - move to drush_log and drush_set_error. Tackle all the PROVISION_*_ERROR constants

Revision 1.20 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Feb 22 22:43:57 2009 UTC (9 months ago) by adrian
Branch: MAIN
Changes since 1.19: +8 -6 lines
Diff to previous 1.19
#374797 - move to drush_log and drush_set_error

Revision 1.19 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Feb 11 21:03:45 2009 UTC (9 months, 2 weeks ago) by anarcat
Branch: MAIN
Changes since 1.18: +5 -5 lines
Diff to previous 1.18
try harder to set the permissions in provision_path_chgrp(), because unknown groups may come through with the ITK extensions

See: #334416

Revision 1.18 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Feb 3 02:19:10 2009 UTC (9 months, 3 weeks ago) by adrian
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17
Silent handling of chmod

Revision 1.17 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Feb 3 00:34:11 2009 UTC (9 months, 3 weeks ago) by adrian
Branch: MAIN
Changes since 1.16: +26 -26 lines
Diff to previous 1.16
Synched head with d6 branch. Works with drush 2.x and no longer needs to be enabled on a site, as it is no longer a module. Hosting has not been updated to point to the right place per server, so you have to create the symlink to the central drush.php yourself. I have not sorted out the version specific stuff yet either.

Revision 1.16.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 29 22:41:22 2009 UTC (9 months, 4 weeks ago) by anarcat
Branch: DRUPAL-6--1
CVS Tags: DRUPAL-6--0-1
Changes since 1.16: +11 -11 lines
Diff to previous 1.16 , to next main 1.28
merge todays work on d5 branch to d6 branch

Revision 1.13.2.4 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 29 20:57:59 2009 UTC (9 months, 4 weeks ago) by anarcat
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--0-1
Changes since 1.13.2.3: +11 -11 lines
Diff to previous 1.13.2.3 , to branch point 1.13 , to next main 1.28
display the path we're talking about in create_dir

Revision 1.16 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Nov 28 00:36:59 2008 UTC (12 months ago) by anarcat
Branch: MAIN
CVS Tags: DRUPAL-6--0-1-RC1
Branch point for: DRUPAL-6--1
Changes since 1.15: +5 -3 lines
Diff to previous 1.15
fix octal modes display

backport from d5 (forgotten back then)

Revision 1.13.2.3 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 13 22:17:47 2008 UTC (12 months, 2 weeks ago) by anarcat
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--0-1-RC1
Changes since 1.13.2.2: +5 -3 lines
Diff to previous 1.13.2.2 , to branch point 1.13
fix display of modes in errors (display as octal, not decimal)

Revision 1.13.2.2 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 13 13:58:46 2008 UTC (12 months, 2 weeks ago) by adrian
Branch: DRUPAL-5
Changes since 1.13.2.1: +17 -2 lines
Diff to previous 1.13.2.1 , to branch point 1.13
#333019 - fallback for mkdir in php4. thanks spidey

Revision 1.15 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 13 13:58:23 2008 UTC (12 months, 2 weeks ago) by adrian
Branch: MAIN
Changes since 1.14: +17 -2 lines
Diff to previous 1.14
#333019 - fallback for mkdir in php4. thanks spidey

Revision 1.14 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Oct 28 17:42:53 2008 UTC (13 months ago) by anarcat
Branch: MAIN
CVS Tags: DRUPAL-6--0-1-BETA2
Changes since 1.13: +4 -4 lines
Diff to previous 1.13
port latest fixes to the d5 branch forward to HEAD

Revision 1.13.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Oct 28 16:33:42 2008 UTC (13 months ago) by anarcat
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--0-1-BETA2
Changes since 1.13: +4 -4 lines
Diff to previous 1.13
improve chown/chgrp/chmod error messages to explain a bit better what has failed

Revision 1.13 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Oct 16 23:12:43 2008 UTC (13 months, 1 week ago) by adrian
Branch: MAIN
Branch point for: DRUPAL-5
Changes since 1.12: +2 -4 lines
Diff to previous 1.12
#321953 - small fix

Revision 1.12 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Oct 16 23:07:42 2008 UTC (13 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.11: +30 -2 lines
Diff to previous 1.11
#321953 - add symlink function too allow for clean creation of symlinks (such as the drush.php link)

Revision 1.11 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Oct 14 21:53:14 2008 UTC (13 months, 2 weeks ago) by adrian
Branch: MAIN
Changes since 1.10: +8 -8 lines
Diff to previous 1.10
#308255 - cleaned up a bunch of coder warnings

Revision 1.10 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Aug 22 13:00:27 2008 UTC (15 months ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-5--0-1-BETA1
Changes since 1.9: +2 -2 lines
Diff to previous 1.9
Integrate help patches from Francis

Revision 1.9 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 27 09:01:55 2008 UTC (17 months ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-5--0-1-ALPHA2, DRUPAL-5--0-1-ALPHA3
Changes since 1.8: +13 -6 lines
Diff to previous 1.8
Fix some small logging problems in provision_path

Revision 1.8 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 27 08:34:41 2008 UTC (17 months ago) by adrian
Branch: MAIN
Changes since 1.7: +1 -2 lines
Diff to previous 1.7
I managed to never commit the provision.install file, which sets the module weights, and makes sure that restore happens in the right order.
This fixes the problem I had where it would try to import the database dump before actually having extracted it.
Fixed the weird chgrp error message it was having (which was just an issue in logging, not in the actual chgrp call)

Revision 1.7 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 27 07:59:42 2008 UTC (17 months ago) by adrian
Branch: MAIN
Changes since 1.6: +1 -0 lines
Diff to previous 1.6
Some extra logging to track down an error during restore i found

Revision 1.6 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 27 06:40:13 2008 UTC (17 months ago) by adrian
Branch: MAIN
Changes since 1.5: +7 -2 lines
Diff to previous 1.5
Do checking to see that the tarball has been correctly extracted. Remove db password from log info returned to hosting.

Revision 1.5 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 27 02:12:15 2008 UTC (17 months ago) by adrian
Branch: MAIN
Changes since 1.4: +39 -0 lines
Diff to previous 1.4
Simplify verify code by creating _provision_create_dir function. Removed duplicate code from other modules. Need this in hosting_setup too.

Revision 1.4 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jun 19 21:15:01 2008 UTC (17 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3
#272480 - rename action to task

Revision 1.3 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jun 19 18:52:51 2008 UTC (17 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.2: +21 -0 lines
Diff to previous 1.2
Added restore functionality for #237555. Implement rollback as well, if something goes wrong it rolls back to the initial system status

Revision 1.2 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jun 12 19:19:50 2008 UTC (17 months, 2 weeks ago) by adrian
Branch: MAIN
Changes since 1.1: +2 -3 lines
Diff to previous 1.1
More work towards restore functionality. Moved the mysql utility functions to provision_mysql.inc, and the help stuff to it's own include too.

Made more constants to replace the various helper functions, still need to document them.

Replaced all references to db_username with db_user, which is consistent with everywhere else in the system.

Revision 1.1 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jun 12 04:02:10 2008 UTC (17 months, 2 weeks ago) by adrian
Branch: MAIN
Practically completely rewrote the provision_check_path function.

It is now called provision_path, and instead of the nasty switch statement it has a small set of pluggable  functions, which work similarly to theme() etc. For that reason I also ended up changing the order of the parameters to be provision_path('mkdir', 'somepath').

The functionality grew to over 200 lines of code (mostly comments), so i split it off into it's own file.

I also added checks that the user is in the correct group, and it will specify it to the user if it comes to it, but I should really hook it up into the user interface and write some better documentation about it before i can close #245664. Although it seems chgrp now fails silently for me, even from the command line. Please check it out.

I moved _provision_drupal_recursive_delete to provision.inc and removed the drupal from the module prefix. I also made it use the provision_path module for logging purposes, cleaning it up a bit.

#262008 is now completely fixed. I've re-added the permission checking in provision_drupal.module, since it now works. It was missing a clearstatcache(), so i added these pretty liberally.

Part of the fallout from this, is that each of the provision_path_ functions have an optional third parameter, which is a reference. This reference can be used to provide a reason for the operation failing. Also, mostly due to the chown function, i run the messages through t() before they get sent to logs. Meaning developers can just use @path and @confirm in their error messages, and they get the centrally prettied up variables. It's made the verify code a lot easier on the eyes. just check out provision_verify.

Added redirection to a new site maintenance page, for while the site is being restored.

Added a switch paths function, which flips around site directories. I'm building restore to be non-destructive, until after the site has been completely restored and verfied. #237555

I'm making a move to using more defines for various site infrastructure things. I just tackled the paths, will do the current user and current group stuff soon, bringing it back in line with hosting. It cleared up a fair amount of code just doing the paths.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.2