Sha256: becb5fd62e5c10ba53bb391ea43b62915c4401953c04c82d1acceba322e8a227

Contents?: true

Size: 232 Bytes

Versions: 2

Compression:

Stored size: 232 Bytes

Contents

# An example publisher that posts a message to the queue that should raise an error.
class Error < Refinery::Publisher
  def execute
    if waiting_queue.size == 0
      publish({'text' => 'fire an error, please'})
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
aeden-refinery-0.9.1 publishers/error.rb
refinery-0.9.0 publishers/error.rb