Loading cccli/command.py +7 −7 Original line number Diff line number Diff line Loading @@ -222,7 +222,7 @@ class Command(object): self.printer.out() def _startstopsdestroypauseresume(self, argv): def _vm_action(self, argv): # arg stuff if len(argv) == 1: raise cmdBadArgument() Loading @@ -244,7 +244,7 @@ class Command(object): len(objs)), "yes") != "yes": raise cmdWarning("Aborted") if len(objs) > 5: if self.printer.ask("You request is on more than 5 objets. Are you really sure to %s its? (Yes, I am) "%argv[0], "Yes, I am") != "Yes, I am": if self.printer.ask("You request is on more than 5 objets. Are you really sure to %s its? (Sir, yes Sir!) "%argv[0], "Sir, yes Sir!") != "Sir, yes Sir!": raise cmdWarning("Aborted") try: self.cli.rpc.call(argv[0],tql) Loading @@ -253,27 +253,27 @@ class Command(object): def cmd_start(self, argv): '''Start objects''' self._startstopsdestroypauseresume(argv) self._vm_action(argv) cmd_start.usage = "start [tql]" def cmd_stop(self, argv): '''Stop objects''' self._startstopsdestroypauseresume(argv) self._vm_action(argv) cmd_stop.usage = "stop [tql]" def cmd_pause(self, argv): '''Pause objects''' self._startstopsdestroypauseresume(argv) self._vm_action(argv) cmd_pause.usage = "pause [tql]" def cmd_resume(self, argv): '''Resume objects''' self._startstopsdestroypauseresume(argv) self._vm_action(argv) cmd_resume.usage = "resume [tql]" def cmd_destroy(self, argv): '''Force objects to stop''' self._startstopsdestroypauseresume(argv) self._vm_action(argv) cmd_destroy.usage = "destroy [tql]" def cmd_clear(self, argv): Loading Loading
cccli/command.py +7 −7 Original line number Diff line number Diff line Loading @@ -222,7 +222,7 @@ class Command(object): self.printer.out() def _startstopsdestroypauseresume(self, argv): def _vm_action(self, argv): # arg stuff if len(argv) == 1: raise cmdBadArgument() Loading @@ -244,7 +244,7 @@ class Command(object): len(objs)), "yes") != "yes": raise cmdWarning("Aborted") if len(objs) > 5: if self.printer.ask("You request is on more than 5 objets. Are you really sure to %s its? (Yes, I am) "%argv[0], "Yes, I am") != "Yes, I am": if self.printer.ask("You request is on more than 5 objets. Are you really sure to %s its? (Sir, yes Sir!) "%argv[0], "Sir, yes Sir!") != "Sir, yes Sir!": raise cmdWarning("Aborted") try: self.cli.rpc.call(argv[0],tql) Loading @@ -253,27 +253,27 @@ class Command(object): def cmd_start(self, argv): '''Start objects''' self._startstopsdestroypauseresume(argv) self._vm_action(argv) cmd_start.usage = "start [tql]" def cmd_stop(self, argv): '''Stop objects''' self._startstopsdestroypauseresume(argv) self._vm_action(argv) cmd_stop.usage = "stop [tql]" def cmd_pause(self, argv): '''Pause objects''' self._startstopsdestroypauseresume(argv) self._vm_action(argv) cmd_pause.usage = "pause [tql]" def cmd_resume(self, argv): '''Resume objects''' self._startstopsdestroypauseresume(argv) self._vm_action(argv) cmd_resume.usage = "resume [tql]" def cmd_destroy(self, argv): '''Force objects to stop''' self._startstopsdestroypauseresume(argv) self._vm_action(argv) cmd_destroy.usage = "destroy [tql]" def cmd_clear(self, argv): Loading