Пример #1
0
	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)
Пример #2
0
    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)
Пример #3
0
	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)
Пример #4
0
	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)
Пример #5
0
 def clean(self, context):
     if self.cleanfn: self.cleanfn(self.path, context)
     BaseTarget.clean(self, context)
Пример #6
0
	def clean(self, context):
		self.makedepend.clean()
		BaseTarget.clean(self, context)
Пример #7
0
	def clean(self, context):
		if self.cleanfn: self.cleanfn(self.path, context)
		BaseTarget.clean(self, context)
Пример #8
0
	def clean(self, context):
		self.makedepend.clean()
		BaseTarget.clean(self, context)