lib/cap_recipes/tasks/juggernaut.rb in xgamerx-cap-recipes-0.1.1 vs lib/cap_recipes/tasks/juggernaut.rb in xgamerx-cap-recipes-0.1.2

- old
+ new

@@ -6,16 +6,16 @@ # =============================================================== desc "Starts the juggernaut push server" task :start, :role => :app do puts "Starting juggernaut push server" - sudo "juggernaut -c #{juggernaut_config} -d --pid #{juggernaut_pid} --log #{juggernaut_log}" + sudo "#{sudo} juggernaut -c #{juggernaut_config} -d --pid #{juggernaut_pid} --log #{juggernaut_log}" end desc "Stops the juggernaut push server" task :stop, :role => :app do puts "Stopping juggernaut push server" - sudo "juggernaut -c #{juggernaut_config} -k * --pid #{juggernaut_pid} --log #{juggernaut_log}" + sudo "#{sudo} juggernaut -c #{juggernaut_config} -k * --pid #{juggernaut_pid} --log #{juggernaut_log}" end desc "Restarts the juggernaut push server" task :restart, :role => :app do juggernaut.stop \ No newline at end of file