Sha256: a115eeaa2368ffe6bb2b6c9149556bc5150e00cd1af99d71ab14681af754ee13

Contents?: true

Size: 572 Bytes

Versions: 19

Compression:

Stored size: 572 Bytes

Contents

class CallbackHandler
  def initialize(config)
    @config = config || {}
  end

  def before_start
    load(@config[:before_start]) if @config[:before_start]
  end

  def after_complete
    load(@config[:after_complete]) if @config[:after_complete]
  end

  def before_creating_workers
    load(@config[:before_creating_workers]) if @config[:before_creating_workers]
  end

  def after_sync
    load(@config[:after_sync]) if @config[:after_sync]
  end

  def after_creating_workers
    load(@config[:after_creating_workers]) if @config[:after_creating_workers]
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
gorgon-0.7.1 lib/gorgon/callback_handler.rb
gorgon-0.7.0 lib/gorgon/callback_handler.rb
gorgon-0.7.0.rc4 lib/gorgon/callback_handler.rb
gorgon-0.7.0.rc3 lib/gorgon/callback_handler.rb
gorgon-0.7.0.rc2 lib/gorgon/callback_handler.rb
gorgon-0.7.0.rc1 lib/gorgon/callback_handler.rb
gorgon-0.6.5 lib/gorgon/callback_handler.rb
gorgon-0.6.4 lib/gorgon/callback_handler.rb
gorgon-0.6.3 lib/gorgon/callback_handler.rb
gorgon-0.6.2 lib/gorgon/callback_handler.rb
gorgon-0.6.1 lib/gorgon/callback_handler.rb
gorgon-0.6.0 lib/gorgon/callback_handler.rb
gorgon-0.6.0.rc2 lib/gorgon/callback_handler.rb
gorgon-0.6.0.rc1 lib/gorgon/callback_handler.rb
gorgon-0.5.0.rc1 lib/gorgon/callback_handler.rb
gorgon-0.4.5 lib/gorgon/callback_handler.rb
gorgon-0.4.5.rc1 lib/gorgon/callback_handler.rb
gorgon-0.4.4 lib/gorgon/callback_handler.rb
gorgon-0.4.3 lib/gorgon/callback_handler.rb