Module: MudisIPCConfig
- Included in:
- MudisClient, MudisServer
- Defined in:
- lib/mudis_ipc_config.rb
Overview
Shared configuration for IPC mode (server and client)
Constant Summary collapse
- SOCKET_PATH =
"/tmp/mudis.sock"- TCP_HOST =
"127.0.0.1"- TCP_PORT =
9876
Class Method Summary collapse
-
.use_tcp? ⇒ Boolean
Check if TCP mode should be used (Windows or forced via ENV).
Class Method Details
.use_tcp? ⇒ Boolean
Check if TCP mode should be used (Windows or forced via ENV)
10 11 12 |
# File 'lib/mudis_ipc_config.rb', line 10 def self.use_tcp? ENV["MUDIS_FORCE_TCP"] == "true" || Gem.win_platform? end |