lib/couchrest/server.rb
# Creates the database if it doesn't exist
Creates the database if it doesn't exist
Creates the database if it doesn ' t exist
def database!(name)
      CouchRest.head "#{@uri}/#{name}" 
      database(name)
    rescue RestClient::ResourceNotFound 
      create_db(name)
    end
def database! ( name ) CouchRest . head "#{@uri}/#{name}" database ( name ) rescue RestClient :: ResourceNotFound create_db ( name ) end
Creates the database if it doesn't exist
Creates the database if it doesn ' t exist
# Check if the URL is valid # Thrown if the HTTP HEAD fails
name