Permalink
Browse files

Adding specific db for compact

  • Loading branch information...
1 parent 9988f77 commit 505b0b015377370907432e8e1707773fe187a8cf @sreeix committed Mar 7, 2011
Showing with 7 additions and 2 deletions.
  1. +7 −2 lib/couchup/commands/compact.rb
@@ -2,10 +2,15 @@ module Couchup
module Commands
class Compact
def run(*params)
- Couchup.database.compact!
+ db = params.shift
+ if(db.nil?)
+ Couchup.database.compact!
+ else
+ Couchup.database(db).compact!
+ end
end
def self.describe
- "Compacts the database. To preserve space"
+ "Compacts the current database. To preserve space."
end
end
end

0 comments on commit 505b0b0

Please sign in to comment.