Sha256: 5465d0fda292674e4d936e776abeae295937bbd5ac500f2a1c50dd9e23673b39
Contents?: true
Size: 819 Bytes
Versions: 2
Compression:
Stored size: 819 Bytes
Contents
module StartingBlocks module Publisher class << self attr_accessor :subscribers, :result_builder def subscribers @subscribers ||= [BashPublisher.new] end def result_builder @result_builder ||= StartingBlocks::ResultBuilder.new end def publish_results results return unless subscribers subscribers.each do |s| parsed_results = StartingBlocks::Publisher.result_builder.build_from results begin s.receive_results parsed_results rescue end end end def publish_files_to_run files return unless subscribers subscribers.each do |s| begin s.receive_files_to_run files rescue end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
starting_blocks-1.3.1 | lib/starting_blocks/publisher.rb |
starting_blocks-1.3.0 | lib/starting_blocks/publisher.rb |