Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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
Esempio n. 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
Esempio n. 7
0
 def __init__(self, context):
     UnitRemoveCommand.__init__(self, context, type_id=TYPE_ID_ISO)
Esempio n. 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)
Esempio n. 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
Esempio n. 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
Esempio n. 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)
Esempio n. 12
0
 def __init__(self, context):
     UnitRemoveCommand.__init__(self, context, type_id=TYPE_ID_ISO)