Module: Capistrano::Ops::Logrotate::Paths
- Defined in:
- lib/capistrano/ops/logrotate/paths.rb
Instance Method Summary collapse
- #log_file_path ⇒ Object
-
#logrotate_basepath ⇒ Object
remote paths.
- #logrotate_config_file_path ⇒ Object
-
#logrotate_config_file_template ⇒ Object
local paths.
- #logrotate_config_filename ⇒ Object
- #logrotate_config_path ⇒ Object
- #logrotate_schedule_file_path ⇒ Object
- #logrotate_schedule_file_template ⇒ Object
- #logrotate_schedule_filename ⇒ Object
Instance Method Details
#log_file_path ⇒ Object
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_basepath ⇒ Object
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_path ⇒ Object
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_template ⇒ Object
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_filename ⇒ Object
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_path ⇒ Object
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_path ⇒ Object
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_template ⇒ Object
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_filename ⇒ Object
37 38 39 |
# File 'lib/capistrano/ops/logrotate/paths.rb', line 37 def logrotate_schedule_filename File.basename(logrotate_schedule_file_template, '.erb') end |