module Luban::Deployment::Packages::Monit::Controller::Commands::Public

Public Instance Methods

check_monitor_command(service_entry, summary: false) click to toggle source
# File lib/luban/deployment/packages/monit/controller.rb, line 28
def check_monitor_command(service_entry, summary: false)
  shell_command("#{monit_command} #{summary ? :summary : :status} #{service_entry}")
end
monit_command() click to toggle source
# File lib/luban/deployment/packages/monit/controller.rb, line 12
def monit_command
  @monit_command ||= "#{monitor_executable} -c #{monitor_control_file_path}"
end
monitor_command(service_entry) click to toggle source
# File lib/luban/deployment/packages/monit/controller.rb, line 16
def monitor_command(service_entry)
  @monitor_command ||= shell_command("#{monit_command} monitor #{service_entry}")
end
monitor_control_file_name() click to toggle source
# File lib/luban/deployment/packages/monit/controller.rb, line 8
def monitor_control_file_name
  @monitor_control_file_name ||= 'monitrc'
end
reload_monitor_command() click to toggle source
# File lib/luban/deployment/packages/monit/controller.rb, line 24
def reload_monitor_command
  @reload_monitor_command ||= shell_command("#{monit_command} reload")
end
unmonitor_command(service_entry) click to toggle source
# File lib/luban/deployment/packages/monit/controller.rb, line 20
def unmonitor_command(service_entry)
  @unmonitor_command ||= shell_command("#{monit_command} unmonitor #{service_entry}")
end