Sha256: ff34abffa0ab00374e919bac5a5541ba582669e0ac1637efd0a8d8c7886446bc
Contents?: true
Size: 314 Bytes
Versions: 1
Compression:
Stored size: 314 Bytes
Contents
require 'hat/publisher' namespace :hat do namespace :examples do task :seed_direct do require 'hat/middlewares/publisher/json' Hat.config.publisher.middlewares << Hat::Middlewares::Publisher::JSON 10000.times { Hat::Publisher.direct('hat.examples.topic', {foo: 'bar'}) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rabbit-hat-0.0.1 | lib/tasks/example_tasks.rake |