diff options
-rw-r--r-- | lib/chef/mixin/homebrew_user.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/chef/mixin/homebrew_user.rb b/lib/chef/mixin/homebrew_user.rb index 05bc42f432..6e86e3824f 100644 --- a/lib/chef/mixin/homebrew_user.rb +++ b/lib/chef/mixin/homebrew_user.rb @@ -34,7 +34,7 @@ class Chef # This tries to find the user to execute brew as. If a user is provided, that overrides the brew # executable user. It is an error condition if the brew executable owner is root or we cannot find # the brew executable. - def find_homebrew_uid(provided_user) + def find_homebrew_uid(provided_user = nil) # They could provide us a user name or a UID unless provided_user.nil? return provided_user if provided_user.is_a? Integer @@ -61,8 +61,7 @@ class Chef ::File.stat(brew_path).uid else raise Chef::Exceptions::CannotDetermineHomebrewOwner, - 'Could not find the "brew" executable in /usr/local/bin or anywhere on the ' + - 'path.' + 'Could not find the "brew" executable in /usr/local/bin or anywhere on the path.' end end |