Sha256: a5840c90cf92e9e2187e882e6335fa67e9ed4b669893a94a941b1ef25803f6e6

Contents?: true

Size: 760 Bytes

Versions: 1

Compression:

Stored size: 760 Bytes

Contents

# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2019-2023, by Samuel Williams.

require_relative '../service/supervisor'

# A application process monitor environment.
#
# @scope Falcon Environments
# @name supervisor
environment(:supervisor) do
	# The name of the supervisor
	# @attribute [String]
	name "supervisor"
	
	# The IPC path to use for communication with the supervisor.
	# @attribute [String]
	ipc_path do
		::File.expand_path("supervisor.ipc", root)
	end
	
	# The endpoint the supervisor will bind to.
	# @attribute [Async::IO::Endpoint]
	endpoint do
		Async::IO::Endpoint.unix(ipc_path)
	end
	
	# The service class to use for the supervisor.
	# @attribute [Class]
	service do
		::Falcon::Service::Supervisor
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
falcon-0.43.0 lib/falcon/environments/supervisor.rb