Method: Jesus::Interface#command

Defined in:
lib/jesus/interface.rb

#command(command, name) ⇒ Object

We execute a specific command to god Could be “start”, “stop”, “restart”, “quit”, “terminate”



38
39
40
41
42
43
44
# File 'lib/jesus/interface.rb', line 38

def command(command, name)
  begin
    server.control(name, command)
  rescue
    return nil
  end
end