Sha256: 0de200d0911bc164529dc255c27d5a45719ec1c9b66e5429e880ee594f4e243e

Contents?: true

Size: 285 Bytes

Versions: 5

Compression:

Stored size: 285 Bytes

Contents

module Euston
  module CommandBus
    def self.publish headers, command
      aggregate = AggregateCommandMap.deliver_command headers, command
      raise "No aggregate found to handle command: #{headers} #{command}" if aggregate.nil?

      Repository.save aggregate
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
euston-1.1.0 lib/euston/command_bus.rb
euston-1.1.0-java lib/euston/command_bus.rb
euston-1.0.1 lib/euston/command_bus.rb
euston-1.0.1-java lib/euston/command_bus.rb
euston-1.0.0 lib/euston/command_bus.rb