(self, container_names=None)
Shows the statuses of the containers of the project.
Shows the statuses of the containers of the project.
Shows the statuses of the containers of the project .
def status(self, container_names=None):
        """ Shows the statuses of the containers of the project. """
        containers = [self.get_container_by_name(name) for name in container_names] \
            if container_names else self.containers
        max_name_length = max(len(c.name) for c in containers)
        logger.info('Current container states:')
        for container in containers:
            logger.info('{container_name} ({status})'.format(
                container_name=container.name.ljust(max_name_length + 10), status=container.status))
def status ( self , container_names = None ) : containers = [ self . get_container_by_name ( name ) for name in container_names ] if container_names else self . containers max_name_length = max ( len ( c . name ) for c in containers ) logger . info ( 'Current container states:' ) for container in containers : logger . info ( '{container_name} ({status})' . format ( container_name = container . name . ljust ( max_name_length + 10 ) , status = container . status ) )