X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f30f230da23603e3c7598205219ce01e9820c470..2e6f821bc9ac4912940bf4e0dab98bb2df8439b5:/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)