From: Tom Hughes Date: Mon, 23 Feb 2015 14:26:24 +0000 (+0000) Subject: Fix argument order to each_with_object X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/64360314db2d3d9a9701ffbc7c3ba56df1665d27 Fix argument order to each_with_object --- diff --git a/cookbooks/chef/libraries/subversion.rb b/cookbooks/chef/libraries/subversion.rb index 86597458a..787f64b3d 100644 --- a/cookbooks/chef/libraries/subversion.rb +++ b/cookbooks/chef/libraries/subversion.rb @@ -23,7 +23,7 @@ class Chef def repo_attrs return {} unless ::File.exist?(::File.join(@new_resource.destination, ".svn")) - @repo_attrs ||= svn_info.lines.each_with_object({}) do |attrs, line| + @repo_attrs ||= svn_info.lines.each_with_object({}) do |line, attrs| if line =~ SVN_INFO_PATTERN property, value = Regexp.last_match[1], Regexp.last_match[2] attrs[property] = value