def clean(self, context): BaseTarget.clean(self, context) options = context.mergeOptions(self) args = [ options['docker.path'] ] environs = { 'DOCKER_HOST' : options['docker.host'] } if options['docker.host'] else {} args.extend(['rmi', context.expandPropertyValues(self.imagename)]) call(args, outputHandler=options['docker.processoutputhandler']('docker-rmi', False, options=options), timeout=options['process.timeout'], env=environs)
def internal_clean(self, context): """ Calls the BaseTarget clean, not the target-specific clean """ try: deleteFile(self._implicitInputsFile) except Exception: time.sleep(10.0) deleteFile(self._implicitInputsFile) BaseTarget.clean(self.target, context)
def clean(self, context): BaseTarget.clean(self, context) args = [ self.getOption('docker.path') ] environs = { 'DOCKER_HOST' : self.getOption('docker.host') } if self.getOption('docker.host') else {} args.extend(['rmi', context.expandPropertyValues(self.imagename)]) try: call(args, outputHandler=self.getOption('docker.processoutputhandler')('docker-rmi', False, options=self.options), timeout=self.getOption('process.timeout'), env=environs) except Exception as e: logger = logging.getLogger('DockerBase') logger.info('Exception cleaning Docker target: %s' % e)
def clean(self, context): if self.cleanfn: self.cleanfn(self.path, context) BaseTarget.clean(self, context)
def clean(self, context): self.makedepend.clean() BaseTarget.clean(self, context)