aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/pathname.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-06 19:52:58 -0700
committerAdam Vandenberg2013-09-11 22:05:26 -0700
commitd4cf3ef2128105097ee200de9f98c42a022d66da (patch)
treec1431e671e46cf7def1848daf280cf3f818f77f3 /Library/Homebrew/extend/pathname.rb
parentcf751fd0133113d59c2ed57b7797c7e9bd2fdd67 (diff)
downloadbrew-d4cf3ef2128105097ee200de9f98c42a022d66da.tar.bz2
Implement Resources
Closes Homebrew/homebrew#20212.
Diffstat (limited to 'Library/Homebrew/extend/pathname.rb')
-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}"