ó ¡ôXc@sàddlZddlZddlZddlmZddlmZddlm Z ddl Z ddl m Z ddl m Z ddlmZddlmZdd lmZdd lmZd ee efd „ƒYZdS( iÿÿÿÿN(tArg(t ArgumentError(tFileTransferProgressBarMixin(topen_pipe_fileobjs(twaitpid_in_thread(tDownloadBundle(tBundleDownloadingMixin(tUnbundleStream(t S3RequesttDownloadAndUnbundlec BsweZdZedddddddddd ƒed d dd ƒgZd „Zd„Zd„Zd„Zd„Z RS(sŽDownload and unbundle a bundled image from the cloud The key used to unbundle the image must match a certificate that was used to bundle it.s-ds --destinationtdesttmetavars (FILE | DIR)tdefaultt.thelpsOwhere to place the unbundled image (default: current directory)s-ks --privatekeys˜file containing the private key to decrypt the bundle with. This must match a certificate used when bundling the image.cCsZtj|ƒ|jjdƒs |jjdƒ}|jjdƒrS||jdRAR<RR(((sQ/usr/lib/python2.7/site-packages/euca2ools/commands/bundle/downloadandunbundle.pyR +s      (RHtos.pathRR'trequestbuilderRtrequestbuilder.exceptionsRtrequestbuilder.mixinsRR+teuca2ools.bundle.utilRRt(euca2ools.commands.bundle.downloadbundleRt euca2ools.commands.bundle.mixinsRt(euca2ools.commands.bundle.unbundlestreamRteuca2ools.commands.s3RR (((sQ/usr/lib/python2.7/site-packages/euca2ools/commands/bundle/downloadandunbundle.pyts