| Total Complexity | 1 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """ |
||
| 14 | class LoadHostCommand(Command): |
||
| 15 | """ |
||
| 16 | Requests the controller to load a host definition |
||
| 17 | |||
| 18 | load_host |
||
| 19 | {host.xml : The host definition to load} |
||
| 20 | """ |
||
| 21 | |||
| 22 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 23 | def handle(self): |
||
| 24 | """ |
||
| 25 | Executes the load host command. |
||
| 26 | """ |
||
| 27 | self.output = EnarkshStyle(self.input, self.output) |
||
| 28 | |||
| 29 | client = LoadHostClient() |
||
| 30 | ret = client.main(self.input.get_argument('host.xml')) |
||
| 31 | |||
| 32 | return ret |
||
| 33 | |||
| 35 |