Example #1
0
 def get_parser(self, prog_name):
     parser = super(ContainerMove, self).get_parser(prog_name)
     ContainerCommandMixin.patch_parser(self, parser)
     parser.add_argument(
         '--src',
         metavar='<service_id>',
         required=True,
         help='ID of the source service',
     )
     parser.add_argument(
         '--dst',
         metavar='<service_id>',
         help='ID of the destination service',
     )
     return parser
Example #2
0
    def get_parser(self, prog_name):
        parser = super(ContainerRepair, self).get_parser(prog_name)
        ContainerCommandMixin.patch_parser(self, parser)

        parser.add_argument('--no-rebuild-bases',
                            action='store_false',
                            dest='rebuild_bases',
                            help='Don\'t rebuild the missing, lost bases. '
                            '(default=%s)' %
                            (not self.tool_class.DEFAULT_REBUILD_BASES))
        parser.add_argument('--no-sync-bases',
                            action='store_false',
                            dest='sync_bases',
                            help='Don\'t synchronize its bases. '
                            '(default=%s)' %
                            (not self.tool_class.DEFAULT_SYNC_BASES))
        parser.add_argument(
            '--no-update-account',
            action='store_false',
            dest='update_account',
            help='Don\'t update the counters for the account service. '
            '(default=%s)' % (not self.tool_class.DEFAULT_UPDATE_ACCOUNT))
        return parser
Example #3
0
 def take_action(self, parsed_args):
     ContainerCommandMixin.check_and_load_parsed_args(
         self, self.app, parsed_args)
     return self.columns, self._take_action(parsed_args)
Example #4
0
 def get_parser(self, prog_name):
     parser = super(ContainerVacuum, self).get_parser(prog_name)
     ContainerCommandMixin.patch_parser(self, parser)
     return parser
Example #5
0
 def take_action(self, parsed_args):
     ContainerCommandMixin.check_and_load_parsed_args(
         self, self.app, parsed_args)
     return super(ContainerMove, self).take_action(parsed_args)
Example #6
0
 def get_parser(self, prog_name):
     parser = super(ContainerMove, self).get_parser(prog_name)
     ContainerCommandMixin.patch_parser(self, parser)
     ItemMoveCommandMixin.patch_parser(self, parser)
     return parser