lib/catissue/domain/storage_container.rb
def find_subcontainer(name, type)
      logger.debug { "Finding box with name #{name}..." }
      ctr = CaTissue::StorageContainer.new(:name => name)
      if ctr.find then
        logger.debug { "Container found: #{ctr}." }
      else
        logger.debug { "Container not found: #{name}." }
        create_subcontainer(name, type)
      end
      box
    end
def find_subcontainer(name, type)
      logger.debug { "Finding box with name #{name}..." }
      ctr = CaTissue::StorageContainer.new(:name => name)
      if ctr.find then
        logger.debug { "Container found: #{ctr}." }
      else
        logger.debug { "Container not found: #{name}." }
        create_subcontainer(name, type)
      end
      box
    end
def find_subcontainer ( name , type ) logger . debug { "Finding box with name #{name}..." } ctr = CaTissue :: StorageContainer . new ( :name => name ) if ctr . find then logger . debug { "Container found: #{ctr}." } else logger . debug { "Container not found: #{name}." } create_subcontainer ( name , type ) end box end
Finds the container with the given name, or creates a new container
 of the given type if necessary.

 @param [String] the container search name
 @param [CaTissue::StorageContainer] the container type
 @return a container with the given name
Finds the container with the given name or creates a new container of the given type if necessary .