class Luban::Deployment::Packages::Monit
Protected Instance Methods
include_default_templates_path()
click to toggle source
# File lib/luban/deployment/packages/monit/base.rb, line 18 def include_default_templates_path default_templates_paths.unshift(base_templates_path(__FILE__)) end
setup_control_tasks()
click to toggle source
Calls superclass method
# File lib/luban/deployment/packages/monit/base.rb, line 28 def setup_control_tasks super commands[:control].alter do task :status do desc "Check process status" switch :summary, "Show status summary", short: :s argument :service_entry, "Service entry name", required: false action! :check_process end task :config_test do desc "Syntax check on control file" action! :config_test end task :reload do desc "Reload process" action! :reload_process end task :match do desc "Match process" argument :pattern, "Regex for process match" action! :match_process end task :monitor do desc "Enable monitoring" argument :service_entry, "Servie entry name" action! :monitor_process end task :unmonitor do desc "Disable monitoring" argument :service_entry, "Servie entry name" action! :unmonitor_process end end end
setup_provision_tasks()
click to toggle source
Calls superclass method
# File lib/luban/deployment/packages/monit/base.rb, line 22 def setup_provision_tasks super provision_tasks[:install].switch :without_pam, "Disable PAM support" provision_tasks[:install].option :openssl, "OpenSSL version" end