Permalink
Browse files

Updated recipes.

  • Loading branch information...
1 parent 27de855 commit 4798ef5e118100c8f6ce92be6d5b37c92eb21bf8 @antob committed Jan 7, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/recipes/bluepill.rb
View
@@ -4,11 +4,11 @@
task :quit, :roles => [:app] do
args = exists?(:options) ? options : ''
begin
- run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec bluepill #{application}_#{rails_env} stop --no-privileged #{args}"
+ run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec bluepill #{application} stop --no-privileged #{args}"
rescue
puts "Bluepill was unable to finish gracefully all the process"
ensure
- run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec bluepill #{application}_#{rails_env} quit --no-privileged"
+ run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec bluepill #{application} quit --no-privileged"
end
end
@@ -20,25 +20,25 @@
desc "|capistrano-recipes| Starts your previous stopped pill"
task :start, :roles =>[:app] do
args = exists?(:options) ? options : ''
- run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec bluepill #{application}_#{rails_env} start --no-privileged #{args}"
+ run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec bluepill #{application} start --no-privileged #{args}"
end
desc "|capistrano-recipes| Stops some bluepill monitored process"
task :stop, :roles =>[:app] do
args = exists?(:options) ? options : ''
- run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec bluepill #{application}_#{rails_env} stop --no-privileged #{args}"
+ run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec bluepill #{application} stop --no-privileged #{args}"
end
desc "|capistrano-recipes| Restarts the pill from {your-app}/config/master.pill"
task :restart, :roles =>[:app] do
args = exists?(:options) ? options : ''
- run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec bluepill #{application}_#{rails_env} restart --no-privileged #{args}"
+ run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec bluepill #{application} restart --no-privileged #{args}"
end
desc "|capistrano-recipes| Prints bluepills monitored processes statuses"
task :status, :roles => [:app] do
args = exists?(:options) ? options : ''
- run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec bluepill #{application}_#{rails_env} status --no-privileged #{args}"
+ run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec bluepill #{application} status --no-privileged #{args}"
end
end
end

0 comments on commit 4798ef5

Please sign in to comment.