diff options
Diffstat (limited to 'lib/bundler/plugin/api.rb')
-rw-r--r-- | lib/bundler/plugin/api.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/plugin/api.rb b/lib/bundler/plugin/api.rb index 9ff4b7385b..5bd8792e55 100644 --- a/lib/bundler/plugin/api.rb +++ b/lib/bundler/plugin/api.rb @@ -44,6 +44,10 @@ module Bundler Plugin.add_source source, cls end + def self.hook(event, &block) + Plugin.add_hook(event, &block) + end + # The cache dir to be used by the plugins for storage # # @return [Pathname] path of the cache dir |