1
0
mirror of https://github.com/hauke68/Magallanes.git synced 2025-09-13 12:40:18 +02:00
Magallanes/Mage/Command/BuiltIn/Lock.php

14 lines
487 B
PHP
Raw Normal View History

2012-09-20 00:16:52 +02:00
<?php
class Mage_Command_BuiltIn_Lock
extends Mage_Command_CommandAbstract
implements Mage_Command_RequiresEnvironment
2012-09-20 00:16:52 +02:00
{
public function run()
2012-09-20 00:16:52 +02:00
{
$lockFile = '.mage/' . $this->getConfig()->getEnvironment() . '.lock';
file_put_contents($lockFile, 'Locked environment at date: ' . date('Y-m-d H:i:s'));
2012-09-20 00:16:52 +02:00
Mage_Console::output('Locked deployment to <light_purple>' . $this->getConfig()->getEnvironment() . '</light_purple> environment', 1, 2);
2012-09-20 00:16:52 +02:00
}
}