diff --git a/license.txt b/LICENSE similarity index 100% rename from license.txt rename to LICENSE diff --git a/Mage/Autoload.php b/Mage/Autoload.php index d5388d9..fe3493c 100644 --- a/Mage/Autoload.php +++ b/Mage/Autoload.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Autoload { public static function autoload($className) diff --git a/Mage/Command/BuiltIn/Add.php b/Mage/Command/BuiltIn/Add.php index c6f6b16..3c02a64 100644 --- a/Mage/Command/BuiltIn/Add.php +++ b/Mage/Command/BuiltIn/Add.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Command_BuiltIn_Add extends Mage_Command_CommandAbstract { diff --git a/Mage/Command/BuiltIn/Compile.php b/Mage/Command/BuiltIn/Compile.php index 2bd59cb..ab00e19 100644 --- a/Mage/Command/BuiltIn/Compile.php +++ b/Mage/Command/BuiltIn/Compile.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + /** * Class Mage_Command_BuiltIn_Compile * diff --git a/Mage/Command/BuiltIn/Deploy.php b/Mage/Command/BuiltIn/Deploy.php index 11ec5c8..5d39058 100644 --- a/Mage/Command/BuiltIn/Deploy.php +++ b/Mage/Command/BuiltIn/Deploy.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Command_BuiltIn_Deploy extends Mage_Command_CommandAbstract implements Mage_Command_RequiresEnvironment diff --git a/Mage/Command/BuiltIn/Init.php b/Mage/Command/BuiltIn/Init.php index 21f493d..7527caa 100644 --- a/Mage/Command/BuiltIn/Init.php +++ b/Mage/Command/BuiltIn/Init.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Command_BuiltIn_Init extends Mage_Command_CommandAbstract { diff --git a/Mage/Command/BuiltIn/Install.php b/Mage/Command/BuiltIn/Install.php index 466d88c..9f15f33 100644 --- a/Mage/Command/BuiltIn/Install.php +++ b/Mage/Command/BuiltIn/Install.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Command_BuiltIn_Install extends Mage_Command_CommandAbstract { diff --git a/Mage/Command/BuiltIn/List.php b/Mage/Command/BuiltIn/List.php index 7a5e06d..920d051 100644 --- a/Mage/Command/BuiltIn/List.php +++ b/Mage/Command/BuiltIn/List.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Command_BuiltIn_List extends Mage_Command_CommandAbstract { diff --git a/Mage/Command/BuiltIn/Lock.php b/Mage/Command/BuiltIn/Lock.php index e5a49d9..033e3ab 100644 --- a/Mage/Command/BuiltIn/Lock.php +++ b/Mage/Command/BuiltIn/Lock.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Command_BuiltIn_Lock extends Mage_Command_CommandAbstract implements Mage_Command_RequiresEnvironment diff --git a/Mage/Command/BuiltIn/Releases.php b/Mage/Command/BuiltIn/Releases.php index 6b8a7ea..931814d 100644 --- a/Mage/Command/BuiltIn/Releases.php +++ b/Mage/Command/BuiltIn/Releases.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Command_BuiltIn_Releases extends Mage_Command_CommandAbstract implements Mage_Command_RequiresEnvironment diff --git a/Mage/Command/BuiltIn/Unlock.php b/Mage/Command/BuiltIn/Unlock.php index 77f34d5..c53c327 100644 --- a/Mage/Command/BuiltIn/Unlock.php +++ b/Mage/Command/BuiltIn/Unlock.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Command_BuiltIn_Unlock extends Mage_Command_CommandAbstract implements Mage_Command_RequiresEnvironment diff --git a/Mage/Command/BuiltIn/Update.php b/Mage/Command/BuiltIn/Update.php index e685379..8ff9a61 100644 --- a/Mage/Command/BuiltIn/Update.php +++ b/Mage/Command/BuiltIn/Update.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Command_BuiltIn_Update extends Mage_Command_CommandAbstract { diff --git a/Mage/Command/BuiltIn/Upgrade.php b/Mage/Command/BuiltIn/Upgrade.php index 2fe04b6..c1b3175 100644 --- a/Mage/Command/BuiltIn/Upgrade.php +++ b/Mage/Command/BuiltIn/Upgrade.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Command_BuiltIn_Upgrade extends Mage_Command_CommandAbstract { diff --git a/Mage/Command/BuiltIn/Version.php b/Mage/Command/BuiltIn/Version.php index 77fe4e7..78127ba 100644 --- a/Mage/Command/BuiltIn/Version.php +++ b/Mage/Command/BuiltIn/Version.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Command_BuiltIn_Version extends Mage_Command_CommandAbstract { diff --git a/Mage/Command/CommandAbstract.php b/Mage/Command/CommandAbstract.php index 5002e04..1142238 100644 --- a/Mage/Command/CommandAbstract.php +++ b/Mage/Command/CommandAbstract.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + abstract class Mage_Command_CommandAbstract { protected $_config = null; diff --git a/Mage/Command/Factory.php b/Mage/Command/Factory.php index b220cbf..ab53bc9 100644 --- a/Mage/Command/Factory.php +++ b/Mage/Command/Factory.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Command_Factory { /** diff --git a/Mage/Command/RequiresEnvironment.php b/Mage/Command/RequiresEnvironment.php index ab70c10..7a44aec 100644 --- a/Mage/Command/RequiresEnvironment.php +++ b/Mage/Command/RequiresEnvironment.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + interface Mage_Command_RequiresEnvironment { } \ No newline at end of file diff --git a/Mage/Compiler.php b/Mage/Compiler.php index 48c0554..8d6ff8f 100644 --- a/Mage/Compiler.php +++ b/Mage/Compiler.php @@ -1,4 +1,12 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ /** * Class Mage_Compiler diff --git a/Mage/Config.php b/Mage/Config.php index fd1285d..3847bc6 100644 --- a/Mage/Config.php +++ b/Mage/Config.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Config { private $_arguments = array(); diff --git a/Mage/Console.php b/Mage/Console.php index 63198e8..ef9dd48 100644 --- a/Mage/Console.php +++ b/Mage/Console.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Console { private static $_log = null; diff --git a/Mage/Console/Colors.php b/Mage/Console/Colors.php index df53ca7..de89103 100644 --- a/Mage/Console/Colors.php +++ b/Mage/Console/Colors.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Console_Colors { private static $foreground_colors = array( @@ -18,7 +27,7 @@ class Mage_Console_Colors 'yellow' => '1;33', 'light_gray' => '0;37', 'white' => '1;37' - + ); // Returns colored string @@ -33,7 +42,7 @@ class Mage_Console_Colors "\033[" . $code . 'm', "\033[0m" ); - + $string = str_replace($replaceFrom, $replaceTo, $string); } diff --git a/Mage/Task/BuiltIn/Deployment/Release.php b/Mage/Task/BuiltIn/Deployment/Release.php index d3b9489..fe47ab0 100644 --- a/Mage/Task/BuiltIn/Deployment/Release.php +++ b/Mage/Task/BuiltIn/Deployment/Release.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Task_BuiltIn_Deployment_Release extends Mage_Task_TaskAbstract implements Mage_Task_Releases_BuiltIn, Mage_Task_Releases_SkipOnOverride diff --git a/Mage/Task/BuiltIn/Deployment/Rsync.php b/Mage/Task/BuiltIn/Deployment/Rsync.php index 10eb7ba..3f8c24f 100644 --- a/Mage/Task/BuiltIn/Deployment/Rsync.php +++ b/Mage/Task/BuiltIn/Deployment/Rsync.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Task_BuiltIn_Deployment_Rsync extends Mage_Task_TaskAbstract implements Mage_Task_Releases_BuiltIn diff --git a/Mage/Task/BuiltIn/Releases/List.php b/Mage/Task/BuiltIn/Releases/List.php index 310a54b..326e836 100644 --- a/Mage/Task/BuiltIn/Releases/List.php +++ b/Mage/Task/BuiltIn/Releases/List.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Task_BuiltIn_Releases_List extends Mage_Task_TaskAbstract implements Mage_Task_Releases_BuiltIn @@ -51,7 +60,7 @@ class Mage_Task_BuiltIn_Releases_List if ($currentRelease == $release) { $isCurrent = ' <- current'; } - + $dateDiff = $this->_dateDiff($releaseDate); Mage_Console::output( @@ -69,7 +78,7 @@ class Mage_Task_BuiltIn_Releases_List return false; } } - + private function _dateDiff($releaseDate) { $textDiff = ''; @@ -80,7 +89,7 @@ class Mage_Task_BuiltIn_Releases_List if ($diff->format('%a') <= 7) { if ($diff->format('%d') == 7) { $textDiff = ' [a week ago] '; - + } else if ($diff->format('%d') > 0 && $diff->format('%d') < 7) { $days = $diff->format('%d'); if ($days <= 1) { @@ -88,7 +97,7 @@ class Mage_Task_BuiltIn_Releases_List } else { $textDiff = ' [' . $days . ' days ago] '; } - + } else if ($diff->format('%d') == 0 && $diff->format('%h') > 0) { $hours = $diff->format('%h'); if ($hours <= 1) { @@ -96,7 +105,7 @@ class Mage_Task_BuiltIn_Releases_List } else { $textDiff = ' [' . $hours . ' hours ago] '; } - + } else if ($diff->format('%d') == 0 && $diff->format('%h') == 0) { $minutes = $diff->format('%i'); if ($minutes <= 1) { @@ -104,7 +113,7 @@ class Mage_Task_BuiltIn_Releases_List } else { $textDiff = ' [' . $minutes . ' minutes ago] '; } - + } else if ($diff->format('%d') == 0 && $diff->format('%h') == 0 && $diff->format('%i') == 0) { $seconds = $diff->format('%s'); if ($seconds < 10) { diff --git a/Mage/Task/BuiltIn/Releases/Rollback.php b/Mage/Task/BuiltIn/Releases/Rollback.php index 97161dc..0f3da06 100644 --- a/Mage/Task/BuiltIn/Releases/Rollback.php +++ b/Mage/Task/BuiltIn/Releases/Rollback.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Task_BuiltIn_Releases_Rollback extends Mage_Task_TaskAbstract implements Mage_Task_Releases_BuiltIn diff --git a/Mage/Task/BuiltIn/Scm/ChangeBranch.php b/Mage/Task/BuiltIn/Scm/ChangeBranch.php index 465d7ca..8075a3b 100644 --- a/Mage/Task/BuiltIn/Scm/ChangeBranch.php +++ b/Mage/Task/BuiltIn/Scm/ChangeBranch.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Task_BuiltIn_Scm_ChangeBranch extends Mage_Task_TaskAbstract { diff --git a/Mage/Task/BuiltIn/Scm/Clone.php b/Mage/Task/BuiltIn/Scm/Clone.php index 87cbbf3..bdd0186 100644 --- a/Mage/Task/BuiltIn/Scm/Clone.php +++ b/Mage/Task/BuiltIn/Scm/Clone.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Task_BuiltIn_Scm_Clone extends Mage_Task_TaskAbstract { diff --git a/Mage/Task/BuiltIn/Scm/RemoveClone.php b/Mage/Task/BuiltIn/Scm/RemoveClone.php index 9d8f67e..e259473 100644 --- a/Mage/Task/BuiltIn/Scm/RemoveClone.php +++ b/Mage/Task/BuiltIn/Scm/RemoveClone.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Task_BuiltIn_Scm_RemoveClone extends Mage_Task_TaskAbstract { diff --git a/Mage/Task/BuiltIn/Scm/Update.php b/Mage/Task/BuiltIn/Scm/Update.php index 85f6acf..f314356 100644 --- a/Mage/Task/BuiltIn/Scm/Update.php +++ b/Mage/Task/BuiltIn/Scm/Update.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Task_BuiltIn_Scm_Update extends Mage_Task_TaskAbstract { diff --git a/Mage/Task/BuiltIn/Symfony2/AsseticDump.php b/Mage/Task/BuiltIn/Symfony2/AsseticDump.php index 405976b..23df65e 100644 --- a/Mage/Task/BuiltIn/Symfony2/AsseticDump.php +++ b/Mage/Task/BuiltIn/Symfony2/AsseticDump.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Task_BuiltIn_Symfony2_AsseticDump extends Mage_Task_TaskAbstract { diff --git a/Mage/Task/BuiltIn/Symfony2/AssetsInstall.php b/Mage/Task/BuiltIn/Symfony2/AssetsInstall.php index 09ec7b0..d38945c 100644 --- a/Mage/Task/BuiltIn/Symfony2/AssetsInstall.php +++ b/Mage/Task/BuiltIn/Symfony2/AssetsInstall.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Task_BuiltIn_Symfony2_AssetsInstall extends Mage_Task_TaskAbstract { diff --git a/Mage/Task/BuiltIn/Symfony2/CacheClear.php b/Mage/Task/BuiltIn/Symfony2/CacheClear.php index 2a477f7..8ac8ebd 100644 --- a/Mage/Task/BuiltIn/Symfony2/CacheClear.php +++ b/Mage/Task/BuiltIn/Symfony2/CacheClear.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Task_BuiltIn_Symfony2_CacheClear extends Mage_Task_TaskAbstract { diff --git a/Mage/Task/BuiltIn/Symfony2/CacheWarmup.php b/Mage/Task/BuiltIn/Symfony2/CacheWarmup.php index 37f8ddc..8bd0bb5 100644 --- a/Mage/Task/BuiltIn/Symfony2/CacheWarmup.php +++ b/Mage/Task/BuiltIn/Symfony2/CacheWarmup.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Task_BuiltIn_Symfony2_CacheWarmup extends Mage_Task_TaskAbstract { diff --git a/Mage/Task/ErrorWithMessageException.php b/Mage/Task/ErrorWithMessageException.php index f2c7650..75f8476 100644 --- a/Mage/Task/ErrorWithMessageException.php +++ b/Mage/Task/ErrorWithMessageException.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Task_ErrorWithMessageException extends Exception { diff --git a/Mage/Task/Factory.php b/Mage/Task/Factory.php index fbde107..6d21698 100644 --- a/Mage/Task/Factory.php +++ b/Mage/Task/Factory.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Task_Factory { /** diff --git a/Mage/Task/Releases/BuiltIn.php b/Mage/Task/Releases/BuiltIn.php index 2054449..5eac906 100644 --- a/Mage/Task/Releases/BuiltIn.php +++ b/Mage/Task/Releases/BuiltIn.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + interface Mage_Task_Releases_BuiltIn { } \ No newline at end of file diff --git a/Mage/Task/Releases/RollbackAware.php b/Mage/Task/Releases/RollbackAware.php index dae4aa0..5f8a682 100644 --- a/Mage/Task/Releases/RollbackAware.php +++ b/Mage/Task/Releases/RollbackAware.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + interface Mage_Task_Releases_RollbackAware { } \ No newline at end of file diff --git a/Mage/Task/Releases/SkipOnOverride.php b/Mage/Task/Releases/SkipOnOverride.php index 22421eb..94b6164 100644 --- a/Mage/Task/Releases/SkipOnOverride.php +++ b/Mage/Task/Releases/SkipOnOverride.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + interface Mage_Task_Releases_SkipOnOverride { } \ No newline at end of file diff --git a/Mage/Task/SkipException.php b/Mage/Task/SkipException.php index a369537..a19dfb8 100644 --- a/Mage/Task/SkipException.php +++ b/Mage/Task/SkipException.php @@ -1,6 +1,15 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + class Mage_Task_SkipException extends Exception { - + } \ No newline at end of file diff --git a/Mage/Task/TaskAbstract.php b/Mage/Task/TaskAbstract.php index 47a2107..16e9b42 100644 --- a/Mage/Task/TaskAbstract.php +++ b/Mage/Task/TaskAbstract.php @@ -1,4 +1,13 @@ +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + abstract class Mage_Task_TaskAbstract { protected $_config = null; diff --git a/bin/mage b/bin/mage index bf9a1e7..f326b86 100755 --- a/bin/mage +++ b/bin/mage @@ -1,5 +1,14 @@ #!/usr/bin/env php +* +* For the full copyright and license information, please view the LICENSE +* file that was distributed with this source code. +*/ + date_default_timezone_set('UTC'); $baseDir = dirname(dirname(__FILE__));