Sha256: 3c4c20e54be66eaa999da9f08eb4290bf89136697c921f0f60ccea515fc6ecb2
Contents?: true
Size: 1009 Bytes
Versions: 1
Compression:
Stored size: 1009 Bytes
Contents
# Snoopka TODO: Write a gem description ## Installation Add this line to your application's Gemfile: gem 'snoopka' And then execute: $ bundle Or install it yourself as: $ gem install snoopka ## Usage Sample code: require 'snoopka' require 'logger' # pass the custom behavior as a block namespace :kafka do desc 'Starts the kafka listener' task :listen, [:daemonized] => :environment do |t, args| Process.daemon(true, true) if args.daemonized puts 'Starting the Kafka listener' listener = Snoopka::Listener.new host: "localhost", port: 9092 handler = Handler.new listener.add_observer 'test', &handler loop do listener.consume end end end ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
snoopka-0.0.1 | README.md |