Commit b7d7b7c8 authored by Victor Penso's avatar Victor Penso
Browse files

Support notifies

parent 208bed67
......@@ -26,6 +26,7 @@
directory
file
link
service
systemd_unit
route
mount
......@@ -45,12 +46,33 @@
conf.each do |key,value|
case key
when 'content'
if resource.eql? 'file'
value = "
#
# DO NOT CHANGE THIS FILE MANUALLY!
#
# This file is managed by the Chef configuration management system
#
#{value}
"
end
value = value.gsub(/^ */,'')
value = value.split("\n")
value = value[1..-1] if value[0] =~ /^$/
value = value.join("\n")
end
value = value.join("\n") << "\n"
send(key,value)
when 'notifies'
send(key, *value)
else
send(key,value)
end
end
end
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment