X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/d6519b0543e8a88903a308c4b6f1f277625497eb..00d5d525005346f6d6f6f4802e238e9e12412117:/cookbooks/chef/libraries/edit_file.rb diff --git a/cookbooks/chef/libraries/edit_file.rb b/cookbooks/chef/libraries/edit_file.rb index 400e1967e..8a04a8090 100644 --- a/cookbooks/chef/libraries/edit_file.rb +++ b/cookbooks/chef/libraries/edit_file.rb @@ -6,6 +6,10 @@ class Chef @block = block end + def kind_of?(klass) + klass == String || super + end + def to_s ::File.new(@file).collect do |line| line = @block.call(line)