Module: Bundler::Plugin::Events

Defined in:
lib/bundler/plugin/events.rb

Constant Summary collapse

GEM_BEFORE_INSTALL_ALL =
"before-install-all"
GEM_AFTER_INSTALL_ALL =
"after-install-all"

Class Method Summary collapse

Class Method Details

.defined_event?(event) ⇒ Boolean

Check if an event has been defined

Parameters:

  • event (String)

    An event to check

Returns:

  • (Boolean)

    A boolean indicating if the event has been defined



28
29
30
31
# File 'lib/bundler/plugin/events.rb', line 28

def self.defined_event?(event)
  @events ||= {}
  @events.key?(event)
end