Sha256: b4af00467faec28609bef9d1722e35ee97c72f2068c8b8ea5f894beebe1703d4

Contents?: true

Size: 457 Bytes

Versions: 14

Compression:

Stored size: 457 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
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
gorgon-0.4.2 lib/gorgon/callback_handler.rb
gorgon-0.4.1 lib/gorgon/callback_handler.rb
gorgon-0.4.1.rc1 lib/gorgon/callback_handler.rb
gorgon-0.4.0 lib/gorgon/callback_handler.rb
gorgon-0.4.0.rc2 lib/gorgon/callback_handler.rb
gorgon-0.4.0.rc1 lib/gorgon/callback_handler.rb
gorgon-0.3.2 lib/gorgon/callback_handler.rb
gorgon-0.3.1 lib/gorgon/callback_handler.rb
gorgon-0.3.0 lib/gorgon/callback_handler.rb
gorgon-0.2.0 lib/gorgon/callback_handler.rb
gorgon-0.1.1 lib/gorgon/callback_handler.rb
gorgon-0.1.0 lib/gorgon/callback_handler.rb
gorgon-0.0.2 lib/gorgon/callback_handler.rb
gorgon-0.0.1 lib/gorgon/callback_handler.rb