Exemple #1
0
    def __init__(self, context, name='remove', description=DESC_REMOVE):
        """
        Initialize remove command.

        See super() for more detail; we just set a few items here
        """
        UnitRemoveCommand.__init__(self, context, name=name, description=description,
                                   type_id=constants.IMAGE_TYPE_ID)
Exemple #2
0
    def __init__(self, context):
        """
        Initialize the command.

        :param context: The CLI context
        :type  context: pulp.client.extensions.core.ClientContext
        """
        UnitRemoveCommand.__init__(self, context, name='remove', description=DESC_REMOVE,
                                   type_id=constants.PACKAGE_TYPE_ID)
Exemple #3
0
    def __init__(self, context):
        """
        Initialize the command.

        :param context: The CLI context
        :type  context: pulp.client.extensions.core.ClientContext
        """
        UnitRemoveCommand.__init__(self, context, name='remove', description=DESC_REMOVE,
                                   type_id=constants.PACKAGE_TYPE_ID)
Exemple #4
0
    def __init__(self, context, name='remove', description=DESC_REMOVE):
        """
        Initialize remove command.

        See super() for more detail; we just set a few items here
        """
        UnitRemoveCommand.__init__(self,
                                   context,
                                   name=name,
                                   description=description,
                                   type_id=constants.IMAGE_TYPE_ID)
Exemple #5
0
 def __init__(self,
              context,
              name,
              description,
              type_id,
              unit_threshold=DISPLAY_UNITS_THRESHOLD):
     UnitRemoveCommand.__init__(self,
                                context,
                                name=name,
                                description=description,
                                type_id=type_id)
     self.unit_threshold = unit_threshold
Exemple #6
0
    def __init__(self,
                 context,
                 name='remove',
                 description=DESC_REMOVE,
                 module_count_threshold=constants.DISPLAY_MODULES_THRESHOLD):
        UnitRemoveCommand.__init__(self,
                                   context,
                                   name=name,
                                   description=description,
                                   type_id=constants.TYPE_PUPPET_MODULE)

        self.max_units_displayed = module_count_threshold
Exemple #7
0
 def __init__(self, context):
     UnitRemoveCommand.__init__(self, context, type_id=TYPE_ID_ISO)
Exemple #8
0
 def __init__(self, context, name='image', description=DESC_REMOVE):
     UnitRemoveCommand.__init__(self, context, name=name, description=description,
                                type_id=constants.IMAGE_TYPE_ID)
Exemple #9
0
    def __init__(self, context, name='remove', description=DESC_REMOVE,
                 module_count_threshold=constants.DISPLAY_MODULES_THRESHOLD):
        UnitRemoveCommand.__init__(self, context, name=name, description=description,
                                   type_id=constants.TYPE_PUPPET_MODULE)

        self.max_units_displayed = module_count_threshold
Exemple #10
0
 def __init__(self, context, name, description, type_id, unit_threshold=DISPLAY_UNITS_THRESHOLD):
     UnitRemoveCommand.__init__(self, context, name=name, description=description, type_id=type_id)
     self.unit_threshold = unit_threshold
Exemple #11
0
 def __init__(self, context, name='image', description=DESC_REMOVE):
     UnitRemoveCommand.__init__(self,
                                context,
                                name=name,
                                description=description,
                                type_id=constants.IMAGE_TYPE_ID)
Exemple #12
0
 def __init__(self, context):
     UnitRemoveCommand.__init__(self, context, type_id=TYPE_ID_ISO)