Sha256: bb23241e514726d0796ec54809a20db83d87edebd529afe7c9e70ac1f730bac1

Contents?: true

Size: 332 Bytes

Versions: 21

Compression:

Stored size: 332 Bytes

Contents

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

      Repository.save aggregate
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
euston-1.2.10 lib/euston/command_bus.rb
euston-1.2.10-java lib/euston/command_bus.rb
euston-1.2.9-java lib/euston/command_bus.rb
euston-1.2.9 lib/euston/command_bus.rb
euston-1.2.8 lib/euston/command_bus.rb
euston-1.2.8-java lib/euston/command_bus.rb
euston-1.2.7-java lib/euston/command_bus.rb
euston-1.2.7 lib/euston/command_bus.rb
euston-1.2.6 lib/euston/command_bus.rb
euston-1.2.5-java lib/euston/command_bus.rb
euston-1.2.5 lib/euston/command_bus.rb
euston-1.2.4-java lib/euston/command_bus.rb
euston-1.2.4 lib/euston/command_bus.rb
euston-1.2.3 lib/euston/command_bus.rb
euston-1.2.3-java lib/euston/command_bus.rb
euston-1.2.2 lib/euston/command_bus.rb
euston-1.2.2-java lib/euston/command_bus.rb
euston-1.2.1 lib/euston/command_bus.rb
euston-1.2.1-java lib/euston/command_bus.rb
euston-1.2.0 lib/euston/command_bus.rb