Capistrano::Storm
This gem provides support in Capistrano 3.x for handling the deployment of a Storm Topology.
Plays nicely with capistrano-scm-jenkins.
Installation
Add this line to your application's Gemfile:
gem 'capistrano-storm'
And then execute:
$ bundle
Usage
This Gem requires that your deploy user have passwordless sudo rights to run
storm kill
and storm jar
. See Capistrano’s Authorisation docs
for a simple example.
In Capfile
:
require 'capistrano/storm'
In your config/deploy.rb
:
# Storm Topology to deploy from the current_path
set :deployed_artifact_filename, 'storm-topology.jar'
set :topology_class_name, 'com.et.contacts.storm.topology.ContactNotifyTopology'
set :topology_name, 'contact-change'
# Any additional arguments you want to pass to `storm jar`
set :topology_other_args, '5 4 4 5'
Contributing
- Fork it ( http://github.com/evertrue/capistrano-storm/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request