summaryrefslogtreecommitdiff
path: root/lib/tapicero/couch_database_creator.rb
blob: a4aaa0f87046bfd54d1183ab7b87a3ca3c240ca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'couchrest'

module Tapicero
  class CouchDatabaseCreator

    def initialize(host)
      @couch = CouchRest.new(host)
    end

    def create(name)
      @couch.database(name).create!
    end
  end
end