コード例 #1
0
ファイル: images.py プロジェクト: bowlofeggs/pulp_openstack
    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)
コード例 #2
0
ファイル: packages.py プロジェクト: bmbouter/pulp_npm
    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)
コード例 #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)
コード例 #4
0
ファイル: images.py プロジェクト: pulp/pulp_openstack
    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)
コード例 #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
コード例 #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
コード例 #7
0
ファイル: association.py プロジェクト: asmacdo/pulp_rpm
 def __init__(self, context):
     UnitRemoveCommand.__init__(self, context, type_id=TYPE_ID_ISO)
コード例 #8
0
ファイル: images.py プロジェクト: bowlofeggs/pulp_docker
 def __init__(self, context, name='image', description=DESC_REMOVE):
     UnitRemoveCommand.__init__(self, context, name=name, description=description,
                                type_id=constants.IMAGE_TYPE_ID)
コード例 #9
0
ファイル: remove.py プロジェクト: asmacdo/pulp_puppet
    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
コード例 #10
0
ファイル: remove.py プロジェクト: jdob/pulp_rpm
 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
コード例 #11
0
ファイル: images.py プロジェクト: bowlofeggs/pulp_docker
 def __init__(self, context, name='image', description=DESC_REMOVE):
     UnitRemoveCommand.__init__(self,
                                context,
                                name=name,
                                description=description,
                                type_id=constants.IMAGE_TYPE_ID)
コード例 #12
0
 def __init__(self, context):
     UnitRemoveCommand.__init__(self, context, type_id=TYPE_ID_ISO)