Kiwi
Ruby Gem to send a messages to Kiwi
A special thanks to Peter Cooper for this great gist that helped me a lot!
Requirements
- Ruby ~> 1.9.2
- LibC
Installation
Add this line to your application's Gemfile:
gem 'tdev_kiwi'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tdev_kiwi
Usage
require 'tdev_kiwi'
message = TotenDev::Message.new
message.worker = '<PATH_TO_WORKER>'
message.args = '<ARGUMENTS>'
queue = TotenDev::Kiwi.new <KEY_ID>
queue.queue_id = '<QUEUE_ID>'
queue.send message
To learn more about this parameters please read How it works.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request