Class: Couchup::Commands::Use
- Inherits:
-
Object
- Object
- Couchup::Commands::Use
- Defined in:
- lib/couchup/commands/use.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.describe ⇒ Object
14 15 16 |
# File 'lib/couchup/commands/use.rb', line 14 def self.describe "Use provided database" end |
Instance Method Details
#run(database) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/couchup/commands/use.rb', line 4 def run(database) db = database.to_s if Couchup.databases.include? db Couchup.database = db puts Couchup.database.info.inspect else puts "Database was not found" end end |