method

run_hooks

ruby latest stable - Class: Bundler::Source::Path::Installer

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

run_hooks(type)
private

No documentation available.

# File lib/bundler/source/path/installer.rb, line 60
        def run_hooks(type)
          hooks_meth = "#{type}_hooks"
          return unless Gem.respond_to?(hooks_meth)
          Gem.send(hooks_meth).each do |hook|
            result = hook.call(self)
            next unless result == false
            location = " at #{$1}" if hook.inspect =~ /@(.*:\d+)/
            message = "#{type} hook#{location} failed for #{spec.full_name}"
            raise InstallHookError, message
          end
        end