Module: Capistrano::MonitBase::Application
- Defined in:
- lib/capistrano/base_helper/monit_base.rb
Class Method Summary collapse
-
.command_monit(command, arguments = "") ⇒ Object
Control / Command monit with given arguments.
-
.command_monit_group(application_group_name, command, arguments = "") ⇒ Object
Control / Command a monit group namescheme: user_application_environment “#user_#application_#environment”.
Class Method Details
.command_monit(command, arguments = "") ⇒ Object
Control / Command monit with given arguments
175 176 177 178 |
# File 'lib/capistrano/base_helper/monit_base.rb', line 175 def command_monit(command, arguments="") c = Capistrano::BaseHelper.get_capistrano_instance c.run("#{c.sudo} monit #{arguments} #{command}") end |
.command_monit_group(application_group_name, command, arguments = "") ⇒ Object
Control / Command a monit group namescheme: user_application_environment “#user_#application_#environment”
169 170 171 |
# File 'lib/capistrano/base_helper/monit_base.rb', line 169 def command_monit_group(application_group_name, command, arguments = "") Capistrano::MonitBase::Application.command_monit(command, "-g #{application_group_name} #{arguments}") end |