Class: Uc::Unicorn::Paths

Inherits:
Object
  • Object
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_dirObject (readonly)

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_fileObject



32
33
34
# File 'lib/uc/unicorn/paths.rb', line 32

def lock_file
  rpath "tmp/unicorn.lock"
end

#pid_fileObject



28
29
30
# File 'lib/uc/unicorn/paths.rb', line 28

def pid_file
  rpath "tmp/pids/unicorn.pid"
end

#socketObject



24
25
26
# File 'lib/uc/unicorn/paths.rb', line 24

def socket
  rpath "tmp/sockets/unicorn.sock"
end

#stderr_logObject



20
21
22
# File 'lib/uc/unicorn/paths.rb', line 20

def stderr_log
  rpath "log/unicorn.stderr.log"
end

#stdout_logObject



16
17
18
# File 'lib/uc/unicorn/paths.rb', line 16

def stdout_log
  rpath "log/unicorn.stdout.log"
end

#unicorn_configObject



36
37
38
# File 'lib/uc/unicorn/paths.rb', line 36

def unicorn_config
  rpath "tmp/unicorn_config.rb"
end

#unicorn_templateObject



40
41
42
# File 'lib/uc/unicorn/paths.rb', line 40

def unicorn_template
  "#{__dir__}/../templates/unicorn.erb"
end