Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update lib/san_juan.rb

  • Loading branch information...
commit 61f84ec648c9a0adc19a320cd853cf0560d718b6 1 parent b8e6ce6
@TeaMoe authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 lib/san_juan.rb
View
14 lib/san_juan.rb
@@ -48,32 +48,32 @@ 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|
@@ -81,7 +81,7 @@ def role(role, watches)
%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
Please sign in to comment.
Something went wrong with that request. Please try again.