class Falcon::Command::Supervisor

Talks to an instance of the supervisor to issue commands and print results.
Implements the ‘falcon supervisor` command.

def call

Connect to the supervisor and execute the requested command.
def call
	Sync do
		endpoint.connect do |socket|
			@command.call(IO::Stream(socket))
		end
	end
end

def endpoint

The endpoint the supervisor is bound to.
def endpoint
	::IO::Endpoint.unix(@options[:path])
end