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

Commit a028a6f

Browse files
committed
Merge pull request #50 from boxen/nodebuild-remove-s3-cellar
nodebuild: s3_cellar is unnecessary
2 parents a7291f7 + dab3a5b commit a028a6f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/puppet/provider/nodejs/nodebuild.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,6 @@ def tmp
7070
"/tmp/node-#{version}.tar.bz2"
7171
end
7272

73-
# Keep in sync with same-named function in:
74-
# https://github.com/boxen/our-boxen/blob/master/script/sync
75-
def s3_cellar
76-
homebrew_cellar = "#{Facter.value(:homebrew_root)}/Cellar"
77-
case homebrew_cellar
78-
when "/Cellar", "/opt/boxen/homebrew/Cellar" then ""
79-
when "/usr/local/Cellar" then "default/"
80-
else "#{Base64.strict_encode64(homebrew_cellar)}/"
81-
end
82-
end
83-
8473
def precompiled_url
8574
base = Facter.value(:boxen_download_url_base) ||
8675
"https://#{Facter.value(:boxen_s3_host)}/#{Facter.value(:boxen_s3_bucket)}"
@@ -92,7 +81,6 @@ def precompiled_url
9281
/
9382
#{Facter.value(:operatingsystem)}
9483
/
95-
#{s3_cellar}
9684
#{os_release}
9785
/
9886
#{CGI.escape(version)}.tar.bz2

0 commit comments

Comments
 (0)