Class: Couchup::Commands::Restart

Inherits:
Object
  • Object
show all
Defined in:
lib/couchup/commands/restart.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.describeObject



8
9
10
11
12
13
14
# File 'lib/couchup/commands/restart.rb', line 8

def self.describe
  {
    :description => "Restarts the couchdb server. Please be careful with it. It will not prompt you for anything.",
    :examples => ["restart"],
    :usage => 'restart'
  }
end

Instance Method Details

#run(*params) ⇒ Object



4
5
6
# File 'lib/couchup/commands/restart.rb', line 4

def run(*params)
  Couchup.server.restart!
end