diff options
Diffstat (limited to 'Library/Homebrew/patch.rb')
| -rw-r--r-- | Library/Homebrew/patch.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/patch.rb b/Library/Homebrew/patch.rb index 64325e78d..27ce2d9c3 100644 --- a/Library/Homebrew/patch.rb +++ b/Library/Homebrew/patch.rb @@ -1,6 +1,7 @@ require 'resource' require 'stringio' require 'erb' +require 'forwardable' class Patch def self.create(strip, io=nil, &block) @@ -80,8 +81,13 @@ class IOPatch < Patch end class ExternalPatch < Patch + extend Forwardable + attr_reader :resource, :strip + def_delegators :@resource, :fetch, :verify_download_integrity, + :cached_download, :clear_cache + def initialize(strip, &block) @strip = strip @resource = Resource.new(&block) |
