Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit fb0d535

Browse files
committed
Merge pull request #71 from boxen/fix-taps-with-custom-root-dir
Fix tap and repo provider with custom root dir
2 parents 10f24a8 + bc8d85d commit fb0d535

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

lib/puppet/provider/homebrew_repo/homebrew.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@
1010
confine :operatingsystem => :darwin
1111

1212
def self.home
13-
if boxen_home = Facter.value(:boxen_home)
14-
"#{boxen_home}/homebrew"
15-
else
16-
raise "The puppet-homebrew module depends on Boxen"
17-
end
13+
Facter.value(:homebrew_root)
1814
end
1915

2016
def check_min_revision

lib/puppet/provider/homebrew_tap/default.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
include Puppet::Util::Execution
77

88
def self.home
9-
@home ||= if boxen_home = Facter.value(:boxen_home)
10-
"#{boxen_home}/homebrew"
11-
else
12-
"/usr/local/homebrew"
13-
end
9+
Facter.value(:homebrew_root)
1410
end
1511

1612
def self.taps_dir

0 commit comments

Comments
 (0)