Sha256: a321247e3a1b1eda7e1101ef4635d50a1a11ff3f99eafd01373d79c78a0dbf35

Contents?: true

Size: 704 Bytes

Versions: 13

Compression:

Stored size: 704 Bytes

Contents

class CallbackHandler
  def initialize(config)
    @config = config || {}
    load(@config[:callbacks_class_file]) if @config[:callbacks_class_file]
  end

  def before_originate
    cluster_id = Gorgon.callbacks.before_originate
    return cluster_id if cluster_id.is_a?(String)
  end

  def after_sync
    Gorgon.callbacks.after_sync
  end

  def before_creating_workers
    Gorgon.callbacks.before_creating_workers
  end

  def before_start
    Gorgon.callbacks.before_start
  end

  def after_creating_workers
    Gorgon.callbacks.after_creating_workers
  end

  def after_complete
    Gorgon.callbacks.after_complete
  end

  def after_job_finishes
    Gorgon.callbacks.after_job_finishes
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gorgon-0.11.0 lib/gorgon/callback_handler.rb
gorgon-0.10.5 lib/gorgon/callback_handler.rb
gorgon-0.10.4 lib/gorgon/callback_handler.rb
gorgon-0.10.3 lib/gorgon/callback_handler.rb
gorgon-0.10.2 lib/gorgon/callback_handler.rb
gorgon-0.10.1 lib/gorgon/callback_handler.rb
gorgon-0.10.0 lib/gorgon/callback_handler.rb
gorgon-0.9.0 lib/gorgon/callback_handler.rb
gorgon-0.8.4 lib/gorgon/callback_handler.rb
gorgon-0.8.3 lib/gorgon/callback_handler.rb
gorgon-0.8.2 lib/gorgon/callback_handler.rb
gorgon-0.8.1 lib/gorgon/callback_handler.rb
gorgon-0.8.0 lib/gorgon/callback_handler.rb