aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorAlyssa Ross2016-09-05 22:13:55 +0100
committerAlyssa Ross2016-09-05 22:13:55 +0100
commitc58bbdc2138d2eb21ab7ea499beb6994a01891c4 (patch)
tree927e5d31957a3c0a91141f038396d6c7201cbb12 /Library/Homebrew/formula.rb
parentba10ce70bd36cbdc05a574f2227093da0ab7f470 (diff)
downloadbrew-c58bbdc2138d2eb21ab7ea499beb6994a01891c4.tar.bz2
Formula#specified_path
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 90e6b2212..cc26a492e 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -226,6 +226,11 @@ class Formula
public
+ # The path that was specified to find/install this formula.
+ def specified_path
+ alias_path || path
+ end
+
# Is the currently active {SoftwareSpec} a {#stable} build?
# @private
def stable?