Class: Falcon::Command::Supervisor::Metrics

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

Instance Method Summary collapse

Instance Method Details

#call(stream) ⇒ Object



50
51
52
53
54
55
# File 'lib/falcon/command/supervisor.rb', line 50

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