lib/armchair.rb
# Create the CouchDB database at <tt>dburl</tt> (see Armchair#new) if it does not exist yet
Create the CouchDB database at dburl  if it does not exist yet
Create the CouchDB database at dburl if it does not exist yet
def create!
    RestClient.get @dburl, :accept => :json do |response|
      case response.code
      when 404
        RestClient.put @dburl, nil, :content_type => :json, :accept => :json
      else
        response.return!
      end
    end
  end
def create! RestClient . get @dburl , :accept => :json do | response | case response . code when 404 RestClient . put @dburl , nil , :content_type => :json , :accept => :json else response . return! end end end
Create the CouchDB database at <tt>dburl</tt> (see Armchair#new) if it does not exist yet
Create the CouchDB database at <tt > dburl< / tt > ( see Armchair#new ) if it does not exist yet