Add license information.

This commit is contained in:
Andrés Montañez 2013-11-05 14:12:09 -02:00
parent fe60dfbdd4
commit c32bb708cf
41 changed files with 368 additions and 9 deletions

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Autoload class Mage_Autoload
{ {
public static function autoload($className) public static function autoload($className)

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Command_BuiltIn_Add class Mage_Command_BuiltIn_Add
extends Mage_Command_CommandAbstract extends Mage_Command_CommandAbstract
{ {

View file

@ -1,4 +1,13 @@
<?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.
*/
/** /**
* Class Mage_Command_BuiltIn_Compile * Class Mage_Command_BuiltIn_Compile
* *

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Command_BuiltIn_Deploy class Mage_Command_BuiltIn_Deploy
extends Mage_Command_CommandAbstract extends Mage_Command_CommandAbstract
implements Mage_Command_RequiresEnvironment implements Mage_Command_RequiresEnvironment

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Command_BuiltIn_Init class Mage_Command_BuiltIn_Init
extends Mage_Command_CommandAbstract extends Mage_Command_CommandAbstract
{ {

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Command_BuiltIn_Install class Mage_Command_BuiltIn_Install
extends Mage_Command_CommandAbstract extends Mage_Command_CommandAbstract
{ {

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Command_BuiltIn_List class Mage_Command_BuiltIn_List
extends Mage_Command_CommandAbstract extends Mage_Command_CommandAbstract
{ {

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Command_BuiltIn_Lock class Mage_Command_BuiltIn_Lock
extends Mage_Command_CommandAbstract extends Mage_Command_CommandAbstract
implements Mage_Command_RequiresEnvironment implements Mage_Command_RequiresEnvironment

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Command_BuiltIn_Releases class Mage_Command_BuiltIn_Releases
extends Mage_Command_CommandAbstract extends Mage_Command_CommandAbstract
implements Mage_Command_RequiresEnvironment implements Mage_Command_RequiresEnvironment

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Command_BuiltIn_Unlock class Mage_Command_BuiltIn_Unlock
extends Mage_Command_CommandAbstract extends Mage_Command_CommandAbstract
implements Mage_Command_RequiresEnvironment implements Mage_Command_RequiresEnvironment

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Command_BuiltIn_Update class Mage_Command_BuiltIn_Update
extends Mage_Command_CommandAbstract extends Mage_Command_CommandAbstract
{ {

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Command_BuiltIn_Upgrade class Mage_Command_BuiltIn_Upgrade
extends Mage_Command_CommandAbstract extends Mage_Command_CommandAbstract
{ {

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Command_BuiltIn_Version class Mage_Command_BuiltIn_Version
extends Mage_Command_CommandAbstract extends Mage_Command_CommandAbstract
{ {

View file

@ -1,4 +1,13 @@
<?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.
*/
abstract class Mage_Command_CommandAbstract abstract class Mage_Command_CommandAbstract
{ {
protected $_config = null; protected $_config = null;

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Command_Factory class Mage_Command_Factory
{ {
/** /**

View file

@ -1,4 +1,13 @@
<?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.
*/
interface Mage_Command_RequiresEnvironment interface Mage_Command_RequiresEnvironment
{ {
} }

View file

@ -1,4 +1,12 @@
<?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.
*/
/** /**
* Class Mage_Compiler * Class Mage_Compiler

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Config class Mage_Config
{ {
private $_arguments = array(); private $_arguments = array();

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Console class Mage_Console
{ {
private static $_log = null; private static $_log = null;

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Console_Colors class Mage_Console_Colors
{ {
private static $foreground_colors = array( private static $foreground_colors = array(
@ -18,7 +27,7 @@ class Mage_Console_Colors
'yellow' => '1;33', 'yellow' => '1;33',
'light_gray' => '0;37', 'light_gray' => '0;37',
'white' => '1;37' 'white' => '1;37'
); );
// Returns colored string // Returns colored string
@ -33,7 +42,7 @@ class Mage_Console_Colors
"\033[" . $code . 'm', "\033[" . $code . 'm',
"\033[0m" "\033[0m"
); );
$string = str_replace($replaceFrom, $replaceTo, $string); $string = str_replace($replaceFrom, $replaceTo, $string);
} }

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Task_BuiltIn_Deployment_Release class Mage_Task_BuiltIn_Deployment_Release
extends Mage_Task_TaskAbstract extends Mage_Task_TaskAbstract
implements Mage_Task_Releases_BuiltIn, Mage_Task_Releases_SkipOnOverride implements Mage_Task_Releases_BuiltIn, Mage_Task_Releases_SkipOnOverride

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Task_BuiltIn_Deployment_Rsync class Mage_Task_BuiltIn_Deployment_Rsync
extends Mage_Task_TaskAbstract extends Mage_Task_TaskAbstract
implements Mage_Task_Releases_BuiltIn implements Mage_Task_Releases_BuiltIn

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Task_BuiltIn_Releases_List class Mage_Task_BuiltIn_Releases_List
extends Mage_Task_TaskAbstract extends Mage_Task_TaskAbstract
implements Mage_Task_Releases_BuiltIn implements Mage_Task_Releases_BuiltIn
@ -51,7 +60,7 @@ class Mage_Task_BuiltIn_Releases_List
if ($currentRelease == $release) { if ($currentRelease == $release) {
$isCurrent = ' <- current'; $isCurrent = ' <- current';
} }
$dateDiff = $this->_dateDiff($releaseDate); $dateDiff = $this->_dateDiff($releaseDate);
Mage_Console::output( Mage_Console::output(
@ -69,7 +78,7 @@ class Mage_Task_BuiltIn_Releases_List
return false; return false;
} }
} }
private function _dateDiff($releaseDate) private function _dateDiff($releaseDate)
{ {
$textDiff = ''; $textDiff = '';
@ -80,7 +89,7 @@ class Mage_Task_BuiltIn_Releases_List
if ($diff->format('%a') <= 7) { if ($diff->format('%a') <= 7) {
if ($diff->format('%d') == 7) { if ($diff->format('%d') == 7) {
$textDiff = ' [a week ago] '; $textDiff = ' [a week ago] ';
} else if ($diff->format('%d') > 0 && $diff->format('%d') < 7) { } else if ($diff->format('%d') > 0 && $diff->format('%d') < 7) {
$days = $diff->format('%d'); $days = $diff->format('%d');
if ($days <= 1) { if ($days <= 1) {
@ -88,7 +97,7 @@ class Mage_Task_BuiltIn_Releases_List
} else { } else {
$textDiff = ' [' . $days . ' days ago] '; $textDiff = ' [' . $days . ' days ago] ';
} }
} else if ($diff->format('%d') == 0 && $diff->format('%h') > 0) { } else if ($diff->format('%d') == 0 && $diff->format('%h') > 0) {
$hours = $diff->format('%h'); $hours = $diff->format('%h');
if ($hours <= 1) { if ($hours <= 1) {
@ -96,7 +105,7 @@ class Mage_Task_BuiltIn_Releases_List
} else { } else {
$textDiff = ' [' . $hours . ' hours ago] '; $textDiff = ' [' . $hours . ' hours ago] ';
} }
} else if ($diff->format('%d') == 0 && $diff->format('%h') == 0) { } else if ($diff->format('%d') == 0 && $diff->format('%h') == 0) {
$minutes = $diff->format('%i'); $minutes = $diff->format('%i');
if ($minutes <= 1) { if ($minutes <= 1) {
@ -104,7 +113,7 @@ class Mage_Task_BuiltIn_Releases_List
} else { } else {
$textDiff = ' [' . $minutes . ' minutes ago] '; $textDiff = ' [' . $minutes . ' minutes ago] ';
} }
} else if ($diff->format('%d') == 0 && $diff->format('%h') == 0 && $diff->format('%i') == 0) { } else if ($diff->format('%d') == 0 && $diff->format('%h') == 0 && $diff->format('%i') == 0) {
$seconds = $diff->format('%s'); $seconds = $diff->format('%s');
if ($seconds < 10) { if ($seconds < 10) {

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Task_BuiltIn_Releases_Rollback class Mage_Task_BuiltIn_Releases_Rollback
extends Mage_Task_TaskAbstract extends Mage_Task_TaskAbstract
implements Mage_Task_Releases_BuiltIn implements Mage_Task_Releases_BuiltIn

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Task_BuiltIn_Scm_ChangeBranch class Mage_Task_BuiltIn_Scm_ChangeBranch
extends Mage_Task_TaskAbstract extends Mage_Task_TaskAbstract
{ {

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Task_BuiltIn_Scm_Clone class Mage_Task_BuiltIn_Scm_Clone
extends Mage_Task_TaskAbstract extends Mage_Task_TaskAbstract
{ {

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Task_BuiltIn_Scm_RemoveClone class Mage_Task_BuiltIn_Scm_RemoveClone
extends Mage_Task_TaskAbstract extends Mage_Task_TaskAbstract
{ {

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Task_BuiltIn_Scm_Update class Mage_Task_BuiltIn_Scm_Update
extends Mage_Task_TaskAbstract extends Mage_Task_TaskAbstract
{ {

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Task_BuiltIn_Symfony2_AsseticDump class Mage_Task_BuiltIn_Symfony2_AsseticDump
extends Mage_Task_TaskAbstract extends Mage_Task_TaskAbstract
{ {

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Task_BuiltIn_Symfony2_AssetsInstall class Mage_Task_BuiltIn_Symfony2_AssetsInstall
extends Mage_Task_TaskAbstract extends Mage_Task_TaskAbstract
{ {

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Task_BuiltIn_Symfony2_CacheClear class Mage_Task_BuiltIn_Symfony2_CacheClear
extends Mage_Task_TaskAbstract extends Mage_Task_TaskAbstract
{ {

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Task_BuiltIn_Symfony2_CacheWarmup class Mage_Task_BuiltIn_Symfony2_CacheWarmup
extends Mage_Task_TaskAbstract extends Mage_Task_TaskAbstract
{ {

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Task_ErrorWithMessageException class Mage_Task_ErrorWithMessageException
extends Exception extends Exception
{ {

View file

@ -1,4 +1,13 @@
<?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.
*/
class Mage_Task_Factory class Mage_Task_Factory
{ {
/** /**

View file

@ -1,4 +1,13 @@
<?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.
*/
interface Mage_Task_Releases_BuiltIn interface Mage_Task_Releases_BuiltIn
{ {
} }

View file

@ -1,4 +1,13 @@
<?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.
*/
interface Mage_Task_Releases_RollbackAware interface Mage_Task_Releases_RollbackAware
{ {
} }

View file

@ -1,4 +1,13 @@
<?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.
*/
interface Mage_Task_Releases_SkipOnOverride interface Mage_Task_Releases_SkipOnOverride
{ {
} }

View file

@ -1,6 +1,15 @@
<?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.
*/
class Mage_Task_SkipException class Mage_Task_SkipException
extends Exception extends Exception
{ {
} }

View file

@ -1,4 +1,13 @@
<?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.
*/
abstract class Mage_Task_TaskAbstract abstract class Mage_Task_TaskAbstract
{ {
protected $_config = null; protected $_config = null;

View file

@ -1,5 +1,14 @@
#!/usr/bin/env php #!/usr/bin/env php
<?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'); date_default_timezone_set('UTC');
$baseDir = dirname(dirname(__FILE__)); $baseDir = dirname(dirname(__FILE__));