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