summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortyler-ball <tyleraball@gmail.com>2014-09-29 11:33:17 -0700
committertyler-ball <tyleraball@gmail.com>2014-10-07 15:34:34 -0700
commit8f9e1eaf3c30c5d8c3501e02046d2dc872d9a552 (patch)
treeb5a07f4f2dc768e33bb136374c18b660447f8b1a
parent22e3473c021bfca389310a49b3f8d8d9e5baf91d (diff)
downloadchef-8f9e1eaf3c30c5d8c3501e02046d2dc872d9a552.tar.gz
Missed file on last commit
-rw-r--r--lib/chef/mixin/homebrew_user.rb5
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