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 b88d8db07074568f8cda33c6797b1c107b524ff6 1 parent 6df5b8e
@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
- bundle_exec "god -c #{san_juan.configuration_path(current_path, role)}"
+ san_juan.bundle_exec "god -c #{san_juan.configuration_path(current_path, role)}"
end
desc "Start god interactively"
task :start_interactive, :roles => role do
- bundle_exec "god -c #{san_juan.configuration_path(current_path, role)} -D"
+ san_juan.bundle_exec "god -c #{san_juan.configuration_path(current_path, role)} -D"
end
desc "Reload the god config file"
task :reload, :roles => role do
- bundle_exec "god load #{san_juan.configuration_path(current_path, role)}"
+ san_juan.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
- bundle_exec 'god quit'
+ san_juan.bundle_exec 'god quit'
end
desc "Terminate god and all monitored processes"
task :terminate, :roles => role do
- bundle_exec 'god terminate'
+ san_juan.bundle_exec 'god terminate'
end
desc "Describe the status of the running tasks"
task :status, :roles => role do
- bundle_exec 'god status'
+ san_juan.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
- bundle_exec "god #{command} #{watch}"
+ san_juan.bundle_exec "god #{command} #{watch}"
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.