file.rb 235 B

123456789
  1. action :replace do
  2. file new_resource.name do
  3. replace(new_resource.before, new_resource.after) if include?(new_resource.before)
  4. owner new_resource.owner
  5. group new_resource.group
  6. mode "0644"
  7. action :touch
  8. end
  9. end