Refactor Runtime to allow custom implementation

This commit is contained in:
Andrés Montañez
2016-12-31 22:53:01 -03:00
parent 05130cb7bc
commit 74c60f55ef
8 changed files with 278 additions and 80 deletions
+6 -6
View File
@@ -10,7 +10,7 @@
namespace Mage;
use Mage\Runtime\Runtime;
use Mage\Runtime\RuntimeInterface;
use DateTime;
/**
@@ -29,23 +29,23 @@ class Utils
public static function getStageName($stage)
{
switch ($stage) {
case Runtime::PRE_DEPLOY:
case RuntimeInterface::PRE_DEPLOY:
return 'Pre Deployment';
break;
case Runtime::ON_DEPLOY:
case RuntimeInterface::ON_DEPLOY:
return 'On Deployment';
break;
case Runtime::POST_DEPLOY:
case RuntimeInterface::POST_DEPLOY:
return 'Post Deployment';
break;
case Runtime::ON_RELEASE:
case RuntimeInterface::ON_RELEASE:
return 'On Release';
break;
case Runtime::POST_RELEASE:
case RuntimeInterface::POST_RELEASE:
return 'Post Release';
break;
}