Class: Falcon::Command::Supervisor
- Inherits:
-
Samovar::Command
- Object
- Samovar::Command
- Falcon::Command::Supervisor
show all
- Defined in:
- lib/falcon/command/supervisor.rb
Defined Under Namespace
Classes: Metrics, Restart
Instance Method Summary
collapse
Instance Method Details
#call ⇒ Object
67
68
69
70
71
72
73
74
75
|
# File 'lib/falcon/command/supervisor.rb', line 67
def call
Async do
endpoint.connect do |socket|
stream = Async::IO::Stream.new(socket)
@command.call(stream)
end
end
end
|
#endpoint ⇒ Object
63
64
65
|
# File 'lib/falcon/command/supervisor.rb', line 63
def endpoint
Async::IO::Endpoint.unix(@options[:path])
end
|