aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formulary.rb
diff options
context:
space:
mode:
authorAlyssa Ross2016-09-05 01:11:36 +0100
committerAlyssa Ross2016-09-05 01:19:08 +0100
commit65ee5408c3d000393c1b73bfe8fb731a651ee281 (patch)
treec9c68f12bba237f4e556493eab85d9ee00899905 /Library/Homebrew/formulary.rb
parentc17664b124a84c7b6f8373337b3623003ca30772 (diff)
downloadbrew-65ee5408c3d000393c1b73bfe8fb731a651ee281.tar.bz2
Replace install_name/install_ref with alias_path
Diffstat (limited to 'Library/Homebrew/formulary.rb')
-rw-r--r--Library/Homebrew/formulary.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index f95f9c51a..cbad28fc7 100644
--- a/Library/Homebrew/formulary.rb
+++ b/Library/Homebrew/formulary.rb
@@ -69,17 +69,16 @@ class Formulary
# The formula's ruby file's path or filename
attr_reader :path
# The name used to install the formula
- attr_reader :install_name
+ attr_reader :alias_path
def initialize(name, path)
@name = name
@path = path.resolved_path
- @install_name = name
end
# Gets the formula instance.
def get_formula(spec)
- klass.new(name, path, spec, :install_name => install_name)
+ klass.new(name, path, spec, :alias_path => alias_path)
end
def klass
@@ -121,7 +120,7 @@ class Formulary
path = alias_path.resolved_path
name = path.basename(".rb").to_s
super name, path
- @install_name = alias_path.basename.to_s
+ @alias_path = alias_path
end
end