Exemple #1
0
    def __call__(self, args, extra_args=None):
        log = logging.getLogger('UploadImage')
        log.debug("args: '%s' extra_args: '%s'" % (args, extra_args))

        repo = RepomanClient(config.host, config.port, config.proxy)
        try:
            #########################
            sign(args.file, args.sign)
            #########################
            repo.upload_image(args.image, args.file)
        except RepomanError, e:
            print e
            sys.exit(1)
Exemple #2
0
    def __call__(self, args, extra_args=None):
        log = logging.getLogger("UploadImage")
        log.debug("args: '%s' extra_args: '%s'" % (args, extra_args))

        repo = RepomanClient(config.host, config.port, config.proxy)
        try:
            #########################
            sign(args.file, args.sign)
            #########################
            repo.upload_image(args.image, args.file)
        except RepomanError, e:
            print e
            sys.exit(1)
Exemple #3
0
 def __call__(self, args, extra_args=None):
     sign(args.target,args.key)
Exemple #4
0
 def __call__(self, args, extra_args=None):
     sign(args.target, args.key)