class Failbot::MemoryBackend

Attributes

reports[RW]

Public Class Methods

new() click to toggle source
# File lib/failbot/memory_backend.rb, line 3
def initialize
  @reports = []
  @fail    = false
end

Public Instance Methods

fail!() click to toggle source
# File lib/failbot/memory_backend.rb, line 10
def fail!
  @fail = true
end
ping() click to toggle source
# File lib/failbot/memory_backend.rb, line 19
def ping
  # nop
end
report(data) click to toggle source
# File lib/failbot/memory_backend.rb, line 14
def report(data)
  @reports << data
  fail if @fail
end