Method: ContainerManager#container

Defined in:
lib/wf_node_api/container_manager.rb

#container(name) ⇒ Hash

Returns information for a single container

Parameters:

  • name (String)

    The container name

Returns:

  • (Hash)

    Hash with information about the container

Raises:



173
174
175
176
177
178
179
# File 'lib/wf_node_api/container_manager.rb', line 173

def container(name)
  if !@adapter.exist?(name)
    raise ::NotFoundError
  end

  @adapter.container(name)
end