Browse Source

Add license information.

1.0
Andrés Montañez 11 years ago
parent
commit
c32bb708cf
  1. 0
      LICENSE
  2. 9
      Mage/Autoload.php
  3. 9
      Mage/Command/BuiltIn/Add.php
  4. 9
      Mage/Command/BuiltIn/Compile.php
  5. 9
      Mage/Command/BuiltIn/Deploy.php
  6. 9
      Mage/Command/BuiltIn/Init.php
  7. 9
      Mage/Command/BuiltIn/Install.php
  8. 9
      Mage/Command/BuiltIn/List.php
  9. 9
      Mage/Command/BuiltIn/Lock.php
  10. 9
      Mage/Command/BuiltIn/Releases.php
  11. 9
      Mage/Command/BuiltIn/Unlock.php
  12. 9
      Mage/Command/BuiltIn/Update.php
  13. 9
      Mage/Command/BuiltIn/Upgrade.php
  14. 9
      Mage/Command/BuiltIn/Version.php
  15. 9
      Mage/Command/CommandAbstract.php
  16. 9
      Mage/Command/Factory.php
  17. 9
      Mage/Command/RequiresEnvironment.php
  18. 8
      Mage/Compiler.php
  19. 9
      Mage/Config.php
  20. 9
      Mage/Console.php
  21. 13
      Mage/Console/Colors.php
  22. 9
      Mage/Task/BuiltIn/Deployment/Release.php
  23. 9
      Mage/Task/BuiltIn/Deployment/Rsync.php
  24. 21
      Mage/Task/BuiltIn/Releases/List.php
  25. 9
      Mage/Task/BuiltIn/Releases/Rollback.php
  26. 9
      Mage/Task/BuiltIn/Scm/ChangeBranch.php
  27. 9
      Mage/Task/BuiltIn/Scm/Clone.php
  28. 9
      Mage/Task/BuiltIn/Scm/RemoveClone.php
  29. 9
      Mage/Task/BuiltIn/Scm/Update.php
  30. 9
      Mage/Task/BuiltIn/Symfony2/AsseticDump.php
  31. 9
      Mage/Task/BuiltIn/Symfony2/AssetsInstall.php
  32. 9
      Mage/Task/BuiltIn/Symfony2/CacheClear.php
  33. 9
      Mage/Task/BuiltIn/Symfony2/CacheWarmup.php
  34. 9
      Mage/Task/ErrorWithMessageException.php
  35. 9
      Mage/Task/Factory.php
  36. 9
      Mage/Task/Releases/BuiltIn.php
  37. 9
      Mage/Task/Releases/RollbackAware.php
  38. 9
      Mage/Task/Releases/SkipOnOverride.php
  39. 11
      Mage/Task/SkipException.php
  40. 9
      Mage/Task/TaskAbstract.php
  41. 9
      bin/mage

0
license.txt → LICENSE

9
Mage/Autoload.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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)

9
Mage/Command/BuiltIn/Add.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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
{

9
Mage/Command/BuiltIn/Compile.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Class Mage_Command_BuiltIn_Compile
*

9
Mage/Command/BuiltIn/Deploy.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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

9
Mage/Command/BuiltIn/Init.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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
{

9
Mage/Command/BuiltIn/Install.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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
{

9
Mage/Command/BuiltIn/List.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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
{

9
Mage/Command/BuiltIn/Lock.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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

9
Mage/Command/BuiltIn/Releases.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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

9
Mage/Command/BuiltIn/Unlock.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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

9
Mage/Command/BuiltIn/Update.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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
{

9
Mage/Command/BuiltIn/Upgrade.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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
{

9
Mage/Command/BuiltIn/Version.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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
{

9
Mage/Command/CommandAbstract.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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;

9
Mage/Command/Factory.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class Mage_Command_Factory
{
/**

9
Mage/Command/RequiresEnvironment.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
interface Mage_Command_RequiresEnvironment
{
}

8
Mage/Compiler.php

@ -1,4 +1,12 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Class Mage_Compiler

9
Mage/Config.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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();

9
Mage/Console.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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;

13
Mage/Console/Colors.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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);
}

9
Mage/Task/BuiltIn/Deployment/Release.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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

9
Mage/Task/BuiltIn/Deployment/Rsync.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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

21
Mage/Task/BuiltIn/Releases/List.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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) {

9
Mage/Task/BuiltIn/Releases/Rollback.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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

9
Mage/Task/BuiltIn/Scm/ChangeBranch.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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
{

9
Mage/Task/BuiltIn/Scm/Clone.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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
{

9
Mage/Task/BuiltIn/Scm/RemoveClone.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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
{

9
Mage/Task/BuiltIn/Scm/Update.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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
{

9
Mage/Task/BuiltIn/Symfony2/AsseticDump.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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
{

9
Mage/Task/BuiltIn/Symfony2/AssetsInstall.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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
{

9
Mage/Task/BuiltIn/Symfony2/CacheClear.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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
{

9
Mage/Task/BuiltIn/Symfony2/CacheWarmup.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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
{

9
Mage/Task/ErrorWithMessageException.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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
{

9
Mage/Task/Factory.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class Mage_Task_Factory
{
/**

9
Mage/Task/Releases/BuiltIn.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
interface Mage_Task_Releases_BuiltIn
{
}

9
Mage/Task/Releases/RollbackAware.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
interface Mage_Task_Releases_RollbackAware
{
}

9
Mage/Task/Releases/SkipOnOverride.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
interface Mage_Task_Releases_SkipOnOverride
{
}

11
Mage/Task/SkipException.php

@ -1,6 +1,15 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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
{
}

9
Mage/Task/TaskAbstract.php

@ -1,4 +1,13 @@
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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;

9
bin/mage

@ -1,5 +1,14 @@
#!/usr/bin/env php
<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* 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__));

Loading…
Cancel
Save