Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function beforeAction($action) |
||
24 | { |
||
25 | // Obtain lock. |
||
26 | $this->stdout('Waiting for lock...', Console::FG_CYAN); |
||
27 | if ($this->module->getLock()) { |
||
28 | $this->stdout("OK\n", Console::FG_GREEN); |
||
29 | } else { |
||
30 | $this->stdout("FAIL\n", Console::FG_RED); |
||
31 | return false; |
||
32 | } |
||
33 | return parent::beforeAction($action); |
||
34 | } |
||
35 | |||
40 | } |