Module: Luban::Deployment::Applications::Rack::Paths
- Included in:
- Configurator, Controller, Publisher
- Defined in:
- lib/luban/deployment/applications/rack/paths.rb
Instance Method Summary collapse
- #control_file_dir ⇒ Object
- #control_file_extname ⇒ Object
- #control_file_name ⇒ Object
- #log_file_name ⇒ Object
- #pid_file_name ⇒ Object
- #public_files_path ⇒ Object
- #socket_file_name ⇒ Object
- #socket_file_path ⇒ Object
- #sockets_path ⇒ Object
Instance Method Details
#control_file_dir ⇒ Object
14 |
# File 'lib/luban/deployment/applications/rack/paths.rb', line 14 def control_file_dir; @control_file_dir ||= "config"; end |
#control_file_extname ⇒ Object
20 21 22 |
# File 'lib/luban/deployment/applications/rack/paths.rb', line 20 def control_file_extname @control_file_extname ||= "rb" end |
#control_file_name ⇒ Object
16 17 18 |
# File 'lib/luban/deployment/applications/rack/paths.rb', line 16 def control_file_name @control_file_name ||= "#{current_web_server}.#{control_file_extname}" end |
#log_file_name ⇒ Object
6 7 8 |
# File 'lib/luban/deployment/applications/rack/paths.rb', line 6 def log_file_name @log_file_name ||= "#{current_web_server}.log" end |
#pid_file_name ⇒ Object
10 11 12 |
# File 'lib/luban/deployment/applications/rack/paths.rb', line 10 def pid_file_name @pid_file_name ||= "#{current_web_server}.pid" end |
#public_files_path ⇒ Object
36 37 38 |
# File 'lib/luban/deployment/applications/rack/paths.rb', line 36 def public_files_path @public_files_path ||= release_path.join('public') end |
#socket_file_name ⇒ Object
32 33 34 |
# File 'lib/luban/deployment/applications/rack/paths.rb', line 32 def socket_file_name @socket_file_name ||= "#{current_web_server}.sock" end |
#socket_file_path ⇒ Object
24 25 26 |
# File 'lib/luban/deployment/applications/rack/paths.rb', line 24 def socket_file_path @socket_file_path ||= sockets_path.join(socket_file_name) end |
#sockets_path ⇒ Object
28 29 30 |
# File 'lib/luban/deployment/applications/rack/paths.rb', line 28 def sockets_path @sockets_path ||= shared_path.join('sockets') end |