mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-23 16:12:11 +02:00
Add license information.
This commit is contained in:
parent
fe60dfbdd4
commit
c32bb708cf
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
{
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
{
|
||||
}
|
|
@ -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
|
||||
{
|
||||
}
|
|
@ -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
|
||||
{
|
||||
}
|
|
@ -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
|
||||
{
|
||||
|
||||
|
||||
}
|
|
@ -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
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…
Reference in a new issue