This repository has been archived by the owner on Dec 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from mikemcquaid/boxen-commands
Move boxen-* commands into the tap's cmd directory.
- Loading branch information
Showing
9 changed files
with
30 additions
and
53 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require File.expand_path("#{File.dirname(__FILE__)}/boxen-bottle-hooks") | ||
require "cmd/install" | ||
|
||
# A custom Homebrew command that loads our bottle hooks. | ||
Homebrew.install |
11 changes: 3 additions & 8 deletions
11
files/boxen-latest.rb → files/brew-boxen-latest.rb
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
require "boxen-bottle-hooks" | ||
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. | ||
# | ||
# $ brew boxen-latest <formula-name> | ||
|
||
module Homebrew | ||
def self.boxen_latest | ||
raise FormulaUnspecifiedError if ARGV.named.empty? | ||
puts ARGV.formulae.first.version | ||
end | ||
end | ||
raise FormulaUnspecifiedError if ARGV.named.empty? | ||
puts ARGV.formulae.first.version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require File.expand_path("#{File.dirname(__FILE__)}/boxen-bottle-hooks") | ||
require "cmd/upgrade" | ||
|
||
# A custom Homebrew command that loads our bottle hooks. | ||
Homebrew.upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters