| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """ |
||
| 18 | class EnarkshApplication(Application): |
||
| 19 | """ |
||
| 20 | The Enarksh application. |
||
| 21 | """ |
||
| 22 | |||
| 23 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 24 | def __init__(self): |
||
| 25 | """ |
||
| 26 | Object constructor |
||
| 27 | """ |
||
| 28 | Application.__init__(self, 'Enarksh', '0.9.0') |
||
| 29 | |||
| 30 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 31 | def get_default_commands(self): |
||
| 32 | """ |
||
| 33 | Returns the default commands of this application. |
||
| 34 | |||
| 35 | :rtype: list[cleo.Command] |
||
| 36 | """ |
||
| 37 | commands = Application.get_default_commands(self) |
||
| 38 | |||
| 39 | self.add(BootstrapCommand()) |
||
| 40 | self.add(HaltCommand()) |
||
| 41 | self.add(LoadHostCommand()) |
||
| 42 | self.add(LoadScheduleCommand()) |
||
| 43 | self.add(NagiosCommand()) |
||
| 44 | self.add(NodeActionCommand()) |
||
| 45 | |||
| 46 | return commands |
||
| 47 | |||
| 49 |