Created
May 21, 2010 22:53
-
-
Save apeckham/409535 to your computer and use it in GitHub Desktop.
capistrano monit tasks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :monit do | |
task :install, :roles => :app do | |
raise "ENV[PLUGIN] is missing" unless ENV['PLUGIN'] | |
sudo "ln -sf #{current_path}/etc/monit.d/#{ENV['PLUGIN']} /etc/monit.d/#{ENV['PLUGIN']}" | |
end | |
task :list, :roles => :app do | |
sudo "ls -al /etc/monit.d" | |
end | |
task :uninstall, :roles => :app do | |
raise "ENV[PLUGIN] is missing" unless ENV['PLUGIN'] | |
sudo "rm /etc/monit.d/#{ENV['PLUGIN']}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment