lib/mina/infinum/tasks.rb in mina-infinum-1.0.0 vs lib/mina/infinum/tasks.rb in mina-infinum-1.0.1

- old
+ new

@@ -1,4 +1,14 @@ +desc 'Restart application' task :restart_application do - queue %(echo "-----> Restarting application") - queue! %(passenger-config restart-app --ignore-app-not-running #{deploy_to}) + comment %(Restarting application) + command %(passenger-config restart-app --ignore-app-not-running #{fetch(:deploy_to)}) +end + +namespace :background_workers do + [:restart, :start, :stop, :status].each do |state| + desc "#{state.capitalize}ing background workers" + task state do + background_worker(state) + end + end end