Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 720 Bytes

DEVELOPER.md

File metadata and controls

46 lines (32 loc) · 720 Bytes

logstash-input-example

Example input plugin. This should help bootstrap your effort to write your own input plugin!

Build new gem

Change version in logstash-input-mongodb.gemspec

And build new gem:

$ gem build logstash-input-mongodb.gemspec

Developing

Use rvm on Ubuntu

  1. Install rvm https://rvm.io/

  2. Install jruby

$ rvm install jruby 1.7.25
  1. Use jruby from rvm
$ rvm alias create default jruby-1.7.25
$ rvm use default
$ /bin/bash --login
$ gem install bundler
$ bundle install
  1. Run tests
  • Unit
$ ruby test/*
  • Rspec (but it needs mongo on localhost, it would be nice to have it is not depended on local mongo)
$ ./bin/rspec