Module: Capistrano::DSL::MonitPaths
- Defined in:
- lib/capistrano/dsl/monit_paths.rb
Overview
Paths and filenames for monit
Instance Method Summary collapse
-
#monit_etc_app_symlink ⇒ Object
The symlink will belong to the deploy user.
-
#monit_etc_conf_d_path ⇒ Object
This folder must be writable by the user group deploy and ownership should be root:deploy.
-
#monit_etc_path ⇒ Object
Folder should belong to root:root.
-
#monit_monitrc_file ⇒ Object
This file must have mode 0700 and belong to root!.
Instance Method Details
#monit_etc_app_symlink ⇒ Object
The symlink will belong to the deploy user
24 25 26 |
# File 'lib/capistrano/dsl/monit_paths.rb', line 24 def monit_etc_app_symlink File.join(monit_etc_conf_d_path, "#{user_app_env_file_name}.conf") end |
#monit_etc_conf_d_path ⇒ Object
This folder must be writable by the user group deploy and ownership should be root:deploy
14 15 16 |
# File 'lib/capistrano/dsl/monit_paths.rb', line 14 def monit_etc_conf_d_path File.join(monit_etc_path, "conf.d") end |
#monit_etc_path ⇒ Object
Folder should belong to root:root
8 9 10 |
# File 'lib/capistrano/dsl/monit_paths.rb', line 8 def monit_etc_path File.join("/etc", "monit") end |
#monit_monitrc_file ⇒ Object
This file must have mode 0700 and belong to root!
19 20 21 |
# File 'lib/capistrano/dsl/monit_paths.rb', line 19 def monit_monitrc_file File.join(monit_etc_path, "monitrc") end |