Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | public function beforeAction($action) |
||
37 | { |
||
38 | // Obtain lock. |
||
39 | $this->stdout('Waiting for lock...', Console::FG_CYAN); |
||
40 | if ($this->module->getLock()) { |
||
41 | $this->stdout("OK\n", Console::FG_GREEN); |
||
42 | } else { |
||
43 | $this->stdout("FAIL\n", Console::FG_RED); |
||
44 | return false; |
||
45 | } |
||
46 | return parent::beforeAction($action); |
||
47 | } |
||
48 | |||
53 | } |