Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding specific db for compact

  • Loading branch information...
commit 505b0b015377370907432e8e1707773fe187a8cf 1 parent 9988f77
@sreeix authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 lib/couchup/commands/compact.rb
View
9 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
Please sign in to comment.
Something went wrong with that request. Please try again.