diff options
Diffstat (limited to 'lib/tapicero/couch_database_creator.rb')
-rw-r--r-- | lib/tapicero/couch_database_creator.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/tapicero/couch_database_creator.rb b/lib/tapicero/couch_database_creator.rb new file mode 100644 index 0000000..a4aaa0f --- /dev/null +++ b/lib/tapicero/couch_database_creator.rb @@ -0,0 +1,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 |