Example #1
0
    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)
Example #2
0
    def _show(self, parser):
        _cmd = ['show']
        _cmd.extend(self.hosts)

        args = parser.parse_args(_cmd)
        return mute(returns_output=True)(args.func)(args)
Example #3
0
    def config_sync(self, parser):
        _cmd = ['sync', '-e']
        _cmd.extend(self.envs)

        args = parser.parse_args(_cmd)
        args.func(args)