def out_of_rotation(self, parser): _cmd = ['state', '-d'] _cmd.extend(self.hosts) args = parser.parse_args(_cmd) args.func(args) return self._show(parser)
def _show(self, parser): _cmd = ['show'] _cmd.extend(self.hosts) args = parser.parse_args(_cmd) return mute(returns_output=True)(args.func)(args)
def config_sync(self, parser): _cmd = ['sync', '-e'] _cmd.extend(self.envs) args = parser.parse_args(_cmd) args.func(args)