Permalink
Browse files

Update lib/san_juan.rb

  • Loading branch information...
1 parent b8e6ce6 commit 61f84ec648c9a0adc19a320cd853cf0560d718b6 @TeaMoe committed May 23, 2012
Showing with 7 additions and 7 deletions.
  1. +7 −7 lib/san_juan.rb
View
@@ -48,40 +48,40 @@ def role(role, watches)
namespace role do
desc "Start god"
task :start, :roles => role do
- run "god -c #{san_juan.configuration_path(current_path, role)}"
+ run "bundle exec god -c #{san_juan.configuration_path(current_path, role)}"
end
desc "Start god interactively"
task :start_interactive, :roles => role do
- run "god -c #{san_juan.configuration_path(current_path, role)} -D"
+ run "bundle exec god -c #{san_juan.configuration_path(current_path, role)} -D"
end
desc "Reload the god config file"
task :reload, :roles => role do
- run "god load #{san_juan.configuration_path(current_path, role)}"
+ run "bundle exec god load #{san_juan.configuration_path(current_path, role)}"
end
desc "Quit god, but not the processes it's monitoring"
task :quit, :roles => role do
- run 'god quit'
+ run 'bundle exec god quit'
end
desc "Terminate god and all monitored processes"
task :terminate, :roles => role do
- run 'god terminate'
+ run 'bundle exec god terminate'
end
desc "Describe the status of the running tasks"
task :status, :roles => role do
- run 'god status'
+ run 'bundle exec god status'
end
watches.each do |watch|
namespace watch do
%w(start restart stop unmonitor remove log).each do |command|
desc "#{command.capitalize} #{watch}"
task command, :roles => role do
- run "god #{command} #{watch}"
+ run "bundle exec god #{command} #{watch}"
end
end
end

0 comments on commit 61f84ec

Please sign in to comment.