Class: Falcon::Command::Supervisor::Restart

Inherits:
Samovar::Command
  • Object
show all
Defined in:
lib/falcon/command/supervisor.rb

Overview

Implements the ‘falcon supervisor restart` command.

Instance Method Summary collapse

Instance Method Details

#call(stream) ⇒ Object

Send the restart message to the supervisor.



49
50
51
# File 'lib/falcon/command/supervisor.rb', line 49

def call(stream)
	stream.puts({please: 'restart'}.to_json, separator: "\0")
end