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
	Async do
		endpoint.connect do |socket|
			stream = Async::IO::Stream.new(socket)
			
			@command.call(stream)
		end
	end
end

def endpoint

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