projects
/
chef.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Qualify property names
[chef.git]
/
cookbooks
/
systemd
/
resources
/
tmpfile.rb
diff --git
a/cookbooks/systemd/resources/tmpfile.rb
b/cookbooks/systemd/resources/tmpfile.rb
index 4138770134741e74bc4953e7ce91daa611ccfe0e..070a9cc8db3a7496c3fc30cd87eca74f263489cb 100644
(file)
--- a/
cookbooks/systemd/resources/tmpfile.rb
+++ b/
cookbooks/systemd/resources/tmpfile.rb
@@
-52,6
+52,8
@@
action :delete do
end
end
-def unit_name
- path.sub(%r{^/}, "").gsub(%r{/}, "-")
+action_class do
+ def unit_name
+ new_resource.path.sub(%r{^/}, "").gsub(%r{/}, "-")
+ end
end