class Falcon::Command::Supervisor
Implements the `falcon supervisor` command.
Talks to an instance of the supervisor to issue commands and print results.
Public Instance Methods
call()
click to toggle source
Connect to the supervisor and execute the requested command.
# File lib/falcon/command/supervisor.rb, line 81 def call Async do endpoint.connect do |socket| stream = Async::IO::Stream.new(socket) @command.call(stream) end end end
endpoint()
click to toggle source
The endpoint the supervisor is bound to.
# File lib/falcon/command/supervisor.rb, line 76 def endpoint Async::IO::Endpoint.unix(@options[:path]) end