Class: ProcessCommand::Socket::Setting
- Inherits:
-
Object
- Object
- ProcessCommand::Socket::Setting
- Defined in:
- lib/process_command/socket/setting.rb
Constant Summary collapse
- DEFAULT_PATH =
"/tmp"
Class Method Summary collapse
Class Method Details
.path ⇒ Object
15 16 17 |
# File 'lib/process_command/socket/setting.rb', line 15 def path @path ||= DEFAULT_PATH end |
.set_path(path) ⇒ Object
11 12 13 |
# File 'lib/process_command/socket/setting.rb', line 11 def set_path(path) @path = path end |
.socket_path(pid) ⇒ Object
19 20 21 |
# File 'lib/process_command/socket/setting.rb', line 19 def socket_path(pid) "#{self.path}/process_command_#{pid}.sock" end |