(self, container_name=None, **kwargs)
Opens a new shell in our first container.
Opens a new shell in our first container.
Opens a new shell in our first container .
def shell(self, container_name=None, **kwargs):
        """ Opens a new shell in our first container. """
        containers = [self.get_container_by_name(container_name)] if container_name \
            else self.containers
        if len(containers) > 1:
            raise ProjectError(
                'This action requires a container name to be specified because {count} '
                'containers are defined in this project.'.format(count=len(self.containers)))
        for container in self._containers_generator(containers=containers):
            container.shell(**kwargs)
def shell ( self , container_name = None , * * kwargs ) : containers = [ self . get_container_by_name ( container_name ) ] if container_name else self . containers if len ( containers ) > 1 : raise ProjectError ( 'This action requires a container name to be specified because {count} ' 'containers are defined in this project.' . format ( count = len ( self . containers ) ) ) for container in self . _containers_generator ( containers = containers ) : container . shell ( * * kwargs )