Class: Uc::Unicorn::Paths
- Inherits:
-
Object
- Object
- Uc::Unicorn::Paths
show all
- Includes:
- Logger
- Defined in:
- lib/uc/unicorn/paths.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods included from Logger
#event_queue, event_stream, #event_stream, logger, #logger, stderr, #stderr
Constructor Details
#initialize(app_dir) ⇒ Paths
Returns a new instance of Paths.
12
13
14
|
# File 'lib/uc/unicorn/paths.rb', line 12
def initialize(app_dir)
@app_dir = app_dir
end
|
Instance Attribute Details
#app_dir ⇒ Object
Returns the value of attribute app_dir.
10
11
12
|
# File 'lib/uc/unicorn/paths.rb', line 10
def app_dir
@app_dir
end
|
Instance Method Details
#lock_file ⇒ Object
32
33
34
|
# File 'lib/uc/unicorn/paths.rb', line 32
def lock_file
rpath "tmp/unicorn.lock"
end
|
#pid_file ⇒ Object
28
29
30
|
# File 'lib/uc/unicorn/paths.rb', line 28
def pid_file
rpath "tmp/pids/unicorn.pid"
end
|
#socket ⇒ Object
24
25
26
|
# File 'lib/uc/unicorn/paths.rb', line 24
def socket
rpath "tmp/sockets/unicorn.sock"
end
|
#stderr_log ⇒ Object
20
21
22
|
# File 'lib/uc/unicorn/paths.rb', line 20
def stderr_log
rpath "log/unicorn.stderr.log"
end
|
#stdout_log ⇒ Object
16
17
18
|
# File 'lib/uc/unicorn/paths.rb', line 16
def stdout_log
rpath "log/unicorn.stdout.log"
end
|
#unicorn_config ⇒ Object
36
37
38
|
# File 'lib/uc/unicorn/paths.rb', line 36
def unicorn_config
rpath "tmp/unicorn_config.rb"
end
|
#unicorn_template ⇒ Object
40
41
42
|
# File 'lib/uc/unicorn/paths.rb', line 40
def unicorn_template
"#{__dir__}/../templates/unicorn.erb"
end
|