Module: Luban::Deployment::Service::Worker::Base
- Included in:
- Application::Worker, Installer, Luban::Deployment::Service::Worker
- Defined in:
- lib/luban/deployment/cli/service/worker.rb
Instance Method Summary collapse
- #control_file_name ⇒ Object
- #control_file_path ⇒ Object
- #log_file_name ⇒ Object
- #log_file_path ⇒ Object
- #log_path ⇒ Object
- #logrotate_file_name ⇒ Object
- #logrotate_file_path ⇒ Object
- #pid_file_name ⇒ Object
- #pid_file_path ⇒ Object
- #pids_path ⇒ Object
- #profile_path ⇒ Object
- #service_entry ⇒ Object
Instance Method Details
#control_file_name ⇒ Object
46 47 48 |
# File 'lib/luban/deployment/cli/service/worker.rb', line 46 def control_file_name @control_file_name ||= "#{service_name}.conf" end |
#control_file_path ⇒ Object
42 43 44 |
# File 'lib/luban/deployment/cli/service/worker.rb', line 42 def control_file_path @control_file_path ||= profile_path.join(control_file_name) end |
#log_file_name ⇒ Object
26 27 28 |
# File 'lib/luban/deployment/cli/service/worker.rb', line 26 def log_file_name @log_file_name ||= "#{service_name}.log" end |
#log_file_path ⇒ Object
22 23 24 |
# File 'lib/luban/deployment/cli/service/worker.rb', line 22 def log_file_path @log_file_path ||= log_path.join(log_file_name) end |
#log_path ⇒ Object
18 19 20 |
# File 'lib/luban/deployment/cli/service/worker.rb', line 18 def log_path @log_path ||= shared_path.join('log') end |
#logrotate_file_name ⇒ Object
54 55 56 |
# File 'lib/luban/deployment/cli/service/worker.rb', line 54 def logrotate_file_name @logrotate_file_name ||= "#{service_name}.logrotate" end |
#logrotate_file_path ⇒ Object
50 51 52 |
# File 'lib/luban/deployment/cli/service/worker.rb', line 50 def logrotate_file_path @logrotate_file_path ||= profile_path.join(logrotate_file_name) end |
#pid_file_name ⇒ Object
38 39 40 |
# File 'lib/luban/deployment/cli/service/worker.rb', line 38 def pid_file_name @pid_file_name ||= "#{service_name}.pid" end |
#pid_file_path ⇒ Object
34 35 36 |
# File 'lib/luban/deployment/cli/service/worker.rb', line 34 def pid_file_path @pid_file_path ||= pids_path.join(pid_file_name) end |
#pids_path ⇒ Object
30 31 32 |
# File 'lib/luban/deployment/cli/service/worker.rb', line 30 def pids_path @pids_path ||= shared_path.join('pids') end |
#profile_path ⇒ Object
14 15 16 |
# File 'lib/luban/deployment/cli/service/worker.rb', line 14 def profile_path @profile_path ||= shared_path.join('profile', service_name) end |
#service_entry ⇒ Object
10 11 12 |
# File 'lib/luban/deployment/cli/service/worker.rb', line 10 def service_entry @service_entry ||= "#{env_name.gsub('/', '.')}.#{service_name}" end |