class Falcon::Command::Supervisor::Metrics
Implements the `falcon supervisor metrics` command.
Public Instance Methods
call(stream)
click to toggle source
Send the metrics message to the supervisor and print the results.
# File lib/falcon/command/supervisor.rb, line 59 def call(stream) stream.puts({please: 'metrics'}.to_json, separator: "\0") response = JSON.parse(stream.gets("\0"), symbolize_names: true) pp response end