aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-06 19:52:58 -0700
committerAdam Vandenberg2013-09-11 22:05:26 -0700
commitb37bbbfc315e98ff525e81a132d16bdc14aed53f (patch)
tree12bd4533ec277373ab4369a8937ea390d705e143 /Library/Homebrew/extend
parenta634b70e24d7eb33295e1d0051436fa391e3b19c (diff)
downloadhomebrew-b37bbbfc315e98ff525e81a132d16bdc14aed53f.tar.bz2
Implement Resources
Closes #20212.
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/pathname.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 60e55278c..cdc5907c5 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -10,6 +10,8 @@ class Pathname
def install *sources
sources.each do |src|
case src
+ when Resource
+ src.stage(self)
when Array
if src.empty?
opoo "tried to install empty array to #{self}"