X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f30f230da23603e3c7598205219ce01e9820c470..68e068818d559ef35bdf2a138a93596337828ef9:/cookbooks/chef/libraries/edit_file.rb diff --git a/cookbooks/chef/libraries/edit_file.rb b/cookbooks/chef/libraries/edit_file.rb index bfbec455c..7de56267f 100644 --- a/cookbooks/chef/libraries/edit_file.rb +++ b/cookbooks/chef/libraries/edit_file.rb @@ -1,4 +1,4 @@ -class Chef +module OpenStreetMap module Mixin module EditFile def edit_file(file, &_block) @@ -10,8 +10,6 @@ class Chef end end end - - class Recipe - include Chef::Mixin::EditFile - end end + +Chef::DSL::Recipe.include(OpenStreetMap::Mixin::EditFile)