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

Instance Method Details

#control_file_nameObject



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_pathObject



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_nameObject



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_pathObject



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_pathObject



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_nameObject



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_pathObject



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_nameObject



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_pathObject



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_pathObject



30
31
32
# File 'lib/luban/deployment/cli/service/worker.rb', line 30

def pids_path
  @pids_path ||= shared_path.join('pids')
end

#profile_pathObject



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_entryObject



10
11
12
# File 'lib/luban/deployment/cli/service/worker.rb', line 10

def service_entry
  @service_entry ||= "#{env_name.gsub('/', '.')}.#{service_name}"
end