Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
module EventStore
  module Consumer
    module Controls
      module Write
        def self.call
          stream_name = StreamName.example random: true

          ending_position = Batch::FinalPosition.example

          writer = EventStore::Client::HTTP::EventWriter.build

          batch = (0..ending_position).map do |position|
            EventData::Write.example position: position
          end

          writer.write batch, stream_name

          stream_name
        end
      end
    end
  end
end