diff options
author | Asutosh Palai <asupalai@gmail.com> | 2016-08-06 20:28:10 +0530 |
---|---|---|
committer | Asutosh Palai <asupalai@gmail.com> | 2016-08-16 09:48:27 +0530 |
commit | f0ea6353f14d7f17e9b95196be790cf876b5ba23 (patch) | |
tree | f360f72a69427f669d9987a6179473f1a8877055 | |
parent | 7a82c290fef0f6ef2f14127e3a186da41da95666 (diff) | |
download | bundler-f0ea6353f14d7f17e9b95196be790cf876b5ba23.tar.gz |
Added plugin feature flag for hook
-rw-r--r-- | lib/bundler/plugin.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/plugin.rb b/lib/bundler/plugin.rb index 1782d47e6e..172c939f53 100644 --- a/lib/bundler/plugin.rb +++ b/lib/bundler/plugin.rb @@ -158,6 +158,8 @@ module Bundler # # @param [String] event def hook(event, *args, &arg_blk) + return unless Bundler.settings[:plugins] + plugins = index.hook_plugins(event) return unless plugins.any? |