From 8ebebdab982bd8272e9a9f55032f17610aa76f4a Mon Sep 17 00:00:00 2001 From: Salimane Adjao Moustapha Date: Mon, 4 Apr 2016 23:14:24 +0200 Subject: [PATCH] Run brew as the current boxen user, fixes #91 This also includes: - Change the default homebrew repo to homebrew/brew Signed-off-by: Salimane Adjao Moustapha --- lib/puppet/provider/homebrew_repo/homebrew.rb | 2 +- manifests/init.pp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/puppet/provider/homebrew_repo/homebrew.rb b/lib/puppet/provider/homebrew_repo/homebrew.rb index beebc50..98d8d06 100644 --- a/lib/puppet/provider/homebrew_repo/homebrew.rb +++ b/lib/puppet/provider/homebrew_repo/homebrew.rb @@ -84,7 +84,7 @@ def homedir_prefix end def brew_command_opts - default_command_opts.merge({ + build_command_opts.merge({ :custom_environment => { "HOME" => "/#{homedir_prefix}/#{@resource[:user]}", "PATH" => "#{self.class.home}/bin:/usr/bin:/usr/sbin:/bin:/sbin", diff --git a/manifests/init.pp b/manifests/init.pp index da569d6..9bd2843 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -12,7 +12,7 @@ $tapsdir = $homebrew::config::tapsdir, $brewsdir = $homebrew::config::brewsdir, $min_revision = $homebrew::config::min_revision, - $repo = 'Homebrew/homebrew', + $repo = 'Homebrew/brew', $set_cflags = true, $set_ldflags = true, ) inherits homebrew::config {