Module: Luban::Deployment::Applications::Rack::Paths

Included in:
Configurator, Controller, Publisher
Defined in:
lib/luban/deployment/applications/rack/paths.rb

Instance Method Summary collapse

Instance Method Details

#control_file_dirObject



14
# File 'lib/luban/deployment/applications/rack/paths.rb', line 14

def control_file_dir; @control_file_dir ||= "config"; end

#control_file_extnameObject



20
21
22
# File 'lib/luban/deployment/applications/rack/paths.rb', line 20

def control_file_extname
  @control_file_extname ||= "rb"
end

#control_file_nameObject



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_nameObject



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_nameObject



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_pathObject



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_nameObject



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_pathObject



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_pathObject



28
29
30
# File 'lib/luban/deployment/applications/rack/paths.rb', line 28

def sockets_path
  @sockets_path ||= shared_path.join('sockets')
end