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

Commit

Permalink
Merge pull request #108 from boxen/puppet-homebrew/deprecate-bottle-h…
Browse files Browse the repository at this point in the history
…ooks

Deprecate `BoxenBottles` and Homebrew hooks
  • Loading branch information
jacobbednarz authored Nov 26, 2017
2 parents 02d6b3f + 506108c commit ea3f0ca
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 111 deletions.
93 changes: 0 additions & 93 deletions files/boxen-bottle-hooks.rb

This file was deleted.

1 change: 0 additions & 1 deletion files/brew-boxen-install.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require File.expand_path("#{File.dirname(__FILE__)}/boxen-bottle-hooks")
require "cmd/install"

# A custom Homebrew command that loads our bottle hooks.
Expand Down
2 changes: 0 additions & 2 deletions files/brew-boxen-latest.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require File.expand_path("#{File.dirname(__FILE__)}/boxen-bottle-hooks")

# A custom Homebrew command that gives us the latest available version
# for a given formula. This allows us to avoid the terrifying prospect
# of loading Homebrew Ruby code in the Puppet process.
Expand Down
7 changes: 0 additions & 7 deletions lib/facter/homebrew_bottle_url.rb

This file was deleted.

3 changes: 0 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@
]:
ensure => 'directory' ;

# shim for bottle hooks
"${brewsdir}/cmd/boxen-bottle-hooks.rb":
source => 'puppet:///modules/homebrew/boxen-bottle-hooks.rb' ;
"${brewsdir}/cmd/brew-boxen-latest.rb":
source => 'puppet:///modules/homebrew/brew-boxen-latest.rb' ;
"${brewsdir}/cmd/brew-boxen-install.rb":
Expand Down
3 changes: 0 additions & 3 deletions spec/classes/homebrew_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@

should contain_boxen__env_script("homebrew")

should contain_file("#{cmddir}/boxen-bottle-hooks.rb").
with_source("puppet:///modules/homebrew/boxen-bottle-hooks.rb")

["latest", "install"].each do |cmd|
should contain_file("#{cmddir}/brew-boxen-#{cmd}.rb").
with_source("puppet:///modules/homebrew/brew-boxen-#{cmd}.rb")
Expand Down
2 changes: 0 additions & 2 deletions templates/env.sh.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
export HOMEBREW_ROOT=<%= @installdir %>
export HOMEBREW_CACHE=<%= @cachedir %>
export BOXEN_HOMEBREW_BOTTLE_URL=<%= scope.lookupvar("::homebrew_bottle_url") %>
<% if @set_cflags %>
export CFLAGS="-I$HOMEBREW_ROOT/include"
<% end %>
Expand Down

0 comments on commit ea3f0ca

Please sign in to comment.