aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-05-21 22:41:21 -0500
committerJack Nagel2013-05-21 22:41:21 -0500
commit0e81c4de9cbb503fc3cc87cba865c5cef6ccb350 (patch)
tree9f3adef266427d21d984b258f520bb505217ff51 /Library
parent6e3cb9f735165ecdda5bcc3d6cd656fa29872c5a (diff)
downloadbrew-0e81c4de9cbb503fc3cc87cba865c5cef6ccb350.tar.bz2
Formula: move pin methods somewhere less intrusive
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb32
1 files changed, 16 insertions, 16 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index ae5fe3f5e..6781b30ec 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -98,22 +98,6 @@ class Formula
(dir = installed_prefix).directory? && dir.children.length > 0
end
- def pinnable?
- @pin.pinnable?
- end
-
- def pinned?
- @pin.pinned?
- end
-
- def pin
- @pin.pin
- end
-
- def unpin
- @pin.unpin
- end
-
def linked_keg
Pathname.new("#{HOMEBREW_LIBRARY}/LinkedKegs/#{name}")
end
@@ -281,6 +265,22 @@ class Formula
@lock.unlock unless @lock.nil?
end
+ def pinnable?
+ @pin.pinnable?
+ end
+
+ def pinned?
+ @pin.pinned?
+ end
+
+ def pin
+ @pin.pin
+ end
+
+ def unpin
+ @pin.unpin
+ end
+
def == b
name == b.name
end