dockupdater/lib/scanner.py
def update(self):
        """Get the list of object, check if update is available, update it"""
        monitored = self.scan_monitored()

        if not monitored:
            self.logger.info('No containers/services are running or monitored on %s', self.socket)
            return

        for container_or_service in monitored:
            self.logger.debug("checking object %s", container_or_service.name)

            if container_or_service.has_new_version():
                self.stops_before_update(container_or_service)

                self.logger.info('%s will be updated', container_or_service.name)
                container_or_service.update()
                self.logger.debug('%s is updated', container_or_service.name)

                self.notification_manager.send(
                    TemplateMessage(container_or_service),
                    container_or_service.config.notifiers,
                )

                if container_or_service.config.wait:
                    self.logger.info('Waiting %s before next update', container_or_service.config.wait)
                    sleep(container_or_service.config.wait)

                self.starts_after_update(container_or_service)
            else:
                self.logger.debug("no new version for %s", container_or_service.name)
Get the list of object, check if update is available, update it
Get the list of object, check if update is available, update it
Get the list of object check if update is available update it
def update(self):
        monitored = self.scan_monitored()
        if not monitored:
            self.logger.info('No containers/services are running or monitored on %s', self.socket)
            return
        for container_or_service in monitored:
            self.logger.debug("checking object %s", container_or_service.name)
            if container_or_service.has_new_version():
                self.stops_before_update(container_or_service)
                self.logger.info('%s will be updated', container_or_service.name)
                container_or_service.update()
                self.logger.debug('%s is updated', container_or_service.name)
                self.notification_manager.send(
                    TemplateMessage(container_or_service),
                    container_or_service.config.notifiers,
                )
                if container_or_service.config.wait:
                    self.logger.info('Waiting %s before next update', container_or_service.config.wait)
                    sleep(container_or_service.config.wait)
                self.starts_after_update(container_or_service)
            else:
                self.logger.debug("no new version for %s", container_or_service.name)
def update ( self ) : monitored = self . scan_monitored ( ) if not monitored : self . logger . info ( 'No containers/services are running or monitored on %s' , self . socket ) return for container_or_service in monitored : self . logger . debug ( "checking object %s" , container_or_service . name ) if container_or_service . has_new_version ( ) : self . stops_before_update ( container_or_service ) self . logger . info ( '%s will be updated' , container_or_service . name ) container_or_service . update ( ) self . logger . debug ( '%s is updated' , container_or_service . name ) self . notification_manager . send ( TemplateMessage ( container_or_service ) , container_or_service . config . notifiers , ) if container_or_service . config . wait : self . logger . info ( 'Waiting %s before next update' , container_or_service . config . wait ) sleep ( container_or_service . config . wait ) self . starts_after_update ( container_or_service ) else : self . logger . debug ( "no new version for %s" , container_or_service . name )
Get the list of object, check if update is available, update it
Get the list of object check if update is available update it
"""Get the list of object, check if update is available, update it"""
self