Class: Falcon::Command::Supervisor::Statistics

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

Instance Method Summary collapse

Instance Method Details

#call(stream) ⇒ Object



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

def call(stream)
  stream.puts({please: 'statistics'}.to_json, separator: "\0")
  response = JSON.parse(stream.gets("\0"), symbolize_names: true)
  
  pp response
end