aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/resource.rb
diff options
context:
space:
mode:
authorJack Nagel2013-09-17 21:25:43 -0500
committerJack Nagel2013-09-17 21:29:54 -0500
commit50d2f632d9157c953dcbaeb33c5b79ef50fee38a (patch)
treedabb9975e2def4f8f9c53154b5e71f4a5cfca1b1 /Library/Homebrew/resource.rb
parent28cb9978ee6d9b4bcabb9b9b238c98da52411da0 (diff)
downloadbrew-50d2f632d9157c953dcbaeb33c5b79ef50fee38a.tar.bz2
Allow partial installation of resources
Diffstat (limited to 'Library/Homebrew/resource.rb')
-rw-r--r--Library/Homebrew/resource.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/resource.rb b/Library/Homebrew/resource.rb
index 238d55ddf..5221f2769 100644
--- a/Library/Homebrew/resource.rb
+++ b/Library/Homebrew/resource.rb
@@ -62,6 +62,12 @@ class Resource
end
end
+ Partial = Struct.new(:resource, :files)
+
+ def files(*files)
+ Partial.new(self, files)
+ end
+
# For brew-fetch and others.
def fetch
# Ensure the cache exists