Ejemplo n.º 1
0
    def checkDeprecatorOptions(options, parser):
        MarketplaceUtil.checkEndpointOption(options)

        if not P12Certificate.checkOptions(options):
            parser.error('Missing credentials. Please provide %s' % P12Certificate.optionString)

        if not options.email:
            parser.error('Missing email address. Please provide email of endorser')
Ejemplo n.º 2
0
    def checkOptions(self):
        if not self.args:
            self.parser.error('Missing metadata file')

        self.manifestFile = self.args[0]

        isFile = os.path.isfile(self.manifestFile)
        exists = os.path.exists(self.manifestFile)
        if not (exists and isFile):
            self.parser.error('Metadata file doesn\'t exist or is not a file')

        if not P12Certificate.checkOptions(self.options):
            self.parser.error('Missing credentials. Please provide %s' % P12Certificate.optionString)