Class: Lacerda::Reporter

Inherits:
Object
  • Object
show all
Defined in:
lib/lacerda/reporter.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Reporter

Returns a new instance of Reporter.



4
5
# File 'lib/lacerda/reporter.rb', line 4

def initialize(options = {})
end

Instance Method Details

#check_consumer(consuming_service) ⇒ Object



28
29
30
# File 'lib/lacerda/reporter.rb', line 28

def check_consumer(consuming_service)
  # Called before all consumed objects are iterated
end

#check_consumingObject



23
24
25
26
# File 'lib/lacerda/reporter.rb', line 23

def check_consuming
  # Called before all consumers' consumed objects are iterated to make
  # sure they have a publisher that meets their specification.
end

#check_published_object(consumed_object_name, publisher_name, publisher_exists, is_published) ⇒ Object



32
33
34
35
# File 'lib/lacerda/reporter.rb', line 32

def check_published_object(consumed_object_name, publisher_name, publisher_exists, is_published)
  # Called after a consumed object was inspected (does a publish specification
  # for this object exist?)
end

#check_publisher(publishing_service) ⇒ Object



12
13
14
# File 'lib/lacerda/reporter.rb', line 12

def check_publisher(publishing_service)
  # Called before one single publisher is checked against its consumers
end

#check_publishingObject



7
8
9
10
# File 'lib/lacerda/reporter.rb', line 7

def check_publishing
  # Called before all publishers are iterated to check if they satisfy
  # their consumers.
end

#object_publish_specification_errors(consumed_object, errors) ⇒ Object



17
18
19
20
21
# File 'lib/lacerda/reporter.rb', line 17

def object_publish_specification_errors(consumed_object, errors)
  # Called after a consumed object's specification has been checked against
  # the publisher's specification of that object. It returns an array of
  # errors
end

#result(errors) ⇒ Object



37
38
39
40
# File 'lib/lacerda/reporter.rb', line 37

def result(errors)
  # Called when everything is done with an array of errors. If that array
  # is empty, go ahead and assume all specifications are valid
end