recipes/restart.rb in eycloud-recipe-resque-1.0.3 vs recipes/restart.rb in eycloud-recipe-resque-1.1.0

- old
+ new

@@ -1,17 +1,16 @@ # # Cookbook Name:: resque # Recipe:: default # -if node[:instance_role] == "solo" || node[:instance_role] == "eylocal" || - (node[:instance_role] == "util" && node[:name] =~ /^(resque)/) +if resque_instance? node[:applications].each do |app_name, data| execute "ensure-resque-is-setup-with-monit" do command %Q{monit reload} end execute "restart-resque" do - command %Q{echo "sleep 20 && monit -g #{app_name}_resque restart all" | at now } + command %Q{echo "sleep 20 && monit -g resque_#{app_name} restart all" | at now } end end end \ No newline at end of file