This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Prefer new notification syntax

  • Loading branch information...
1 parent eb4e69c commit 549b4399f74ed918d32bf22124dd2db957d5928d @realityforge committed Dec 31, 2012
Showing with 8 additions and 8 deletions.
  1. +4 −4 recipes/attribute_driven_dashboard.rb
  2. +3 −3 recipes/default.rb
  3. +1 −1 recipes/web.rb
@@ -1,4 +1,4 @@
-include_recipe "gdash::default"
+include_recipe 'gdash::default'
node['gdash']['dashboards'].each_pair do |dashboard_name, dashboard_config|
@@ -48,7 +48,7 @@
file graph_file do
action :delete
backup false
- notifies :restart, resources(:service => 'gdash'), :delayed
+ notifies :restart, 'service[gdash]', :delayed
end
end
end if File.exist?(template_dir)
@@ -66,15 +66,15 @@
directory dashboard_dir do
action :delete
recursive true
- notifies :restart, resources(:service => 'gdash'), :delayed
+ notifies :restart, 'service[gdash]', :delayed
end
end
end
else
directory category_dir do
action :delete
recursive true
- notifies :restart, resources(:service => 'gdash'), :delayed
+ notifies :restart, 'service[gdash]', :delayed
end
end
end
View
@@ -70,7 +70,7 @@
gemfile.insert_line_if_no_match(/unicorn/, 'gem "unicorn"')
gemfile.write_file
end
- notifies :run, resources(:execute => 'bundle'), :immediately
+ notifies :run, 'execute[bundle]', :immediately
not_if do
File.exists?(File.join(node['gdash']['base'], 'Gemfile')) &&
File.read(File.join(node['gdash']['base'], 'Gemfile')).include?('unicorn')
@@ -88,8 +88,8 @@
creates File.join(node['gdash']['base'], 'Gemfile.lock')
user gdash_owner
group gdash_group
- notifies :create, resources(:ruby_block => 'bundle_unicorn'), :immediately
- notifies :delete, resources(:directory => File.join(node['gdash']['base'], 'graph_templates', 'dashboards')), :immediately
+ notifies :create, 'ruby_block[bundle_unicorn]', :immediately
+ notifies :delete, "directory[#{File.join(node['gdash']['base'], 'graph_templates', 'dashboards')}]", :immediately
end
template File.join(node['gdash']['base'], 'config', 'gdash.yaml') do
View
@@ -3,7 +3,7 @@
template "#{node['apache']['dir']}/sites-available/gdash" do
source 'vhost.conf.erb'
- notifies :restart, resources(:service => 'apache2')
+ notifies :restart, 'service[apache2]'
end
apache_site 'gdash'

0 comments on commit 549b439

Please sign in to comment.