Module: Capistrano::Ops::Logrotate::Paths

Defined in:
lib/capistrano/ops/logrotate/paths.rb

Instance Method Summary collapse

Instance Method Details

#log_file_pathObject



33
34
35
# File 'lib/capistrano/ops/logrotate/paths.rb', line 33

def log_file_path
  shared_path.join fetch(:log_file_path)
end

#logrotate_basepathObject

remote paths



17
18
19
# File 'lib/capistrano/ops/logrotate/paths.rb', line 17

def logrotate_basepath
  shared_path.join fetch(:logrotate_basepath)
end

#logrotate_config_file_pathObject



25
26
27
# File 'lib/capistrano/ops/logrotate/paths.rb', line 25

def logrotate_config_file_path
  logrotate_basepath.join logrotate_config_filename
end

#logrotate_config_file_templateObject

local paths



8
9
10
# File 'lib/capistrano/ops/logrotate/paths.rb', line 8

def logrotate_config_file_template
  Pathname.new fetch(:logrotate_config_file_template)
end

#logrotate_config_filenameObject



41
42
43
# File 'lib/capistrano/ops/logrotate/paths.rb', line 41

def logrotate_config_filename
  File.basename(logrotate_config_file_template, '.erb')
end

#logrotate_config_pathObject



21
22
23
# File 'lib/capistrano/ops/logrotate/paths.rb', line 21

def logrotate_config_path
  shared_path.join fetch(:logrotate_config_path)
end

#logrotate_schedule_file_pathObject



29
30
31
# File 'lib/capistrano/ops/logrotate/paths.rb', line 29

def logrotate_schedule_file_path
  logrotate_basepath.join logrotate_schedule_filename
end

#logrotate_schedule_file_templateObject



12
13
14
# File 'lib/capistrano/ops/logrotate/paths.rb', line 12

def logrotate_schedule_file_template
  Pathname.new fetch(:logrotate_schedule_file_template)
end

#logrotate_schedule_filenameObject



37
38
39
# File 'lib/capistrano/ops/logrotate/paths.rb', line 37

def logrotate_schedule_filename
  File.basename(logrotate_schedule_file_template, '.erb')
end