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

Public Class Methods

included(base) click to toggle source
# File lib/luban/deployment/packages/monit/controller.rb, line 35
def self.included(base)
  base.define_executable 'monit'
end

Public Instance Methods

process_pattern() click to toggle source
# File lib/luban/deployment/packages/monit/controller.rb, line 39
def process_pattern
  @process_pattern ||= "^#{monit_command}"
end
start_command() click to toggle source
# File lib/luban/deployment/packages/monit/controller.rb, line 43
def start_command
  @start_command ||= shell_command(monit_command, setup: [])
end
stop_command() click to toggle source
# File lib/luban/deployment/packages/monit/controller.rb, line 47
def stop_command
  @stop_command ||= shell_command("#{monit_command} quit", setup: [])
end