Skip to content

Commit

Permalink
Merge pull request #70 from thedebugger/send_reload
Browse files Browse the repository at this point in the history
Send reload singal to consul on a service_def change
  • Loading branch information
reset committed Oct 30, 2014
2 parents 39940d0 + f7b41c0 commit f987a54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions providers/service_def.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@
content new_resource.to_json

action :create
notifies :reload, 'service[consul]', :delayed
end
end

action :delete do
file new_resource.path do
action :delete
notifies :reload, 'service[consul]', :delayed
end
end

0 comments on commit f987a54

Please sign in to comment.