Alephant::Harness
Provides supporting classes for running the alephant framework locally.
Alephant::Harness::Setup.configure tears down and sets up the Alephant framework's AWS resources.
Installation
Add this line to your application's Gemfile:
gem 'alephant-harness'
And then execute:
$ bundle
Or install it yourself as:
$ gem install alephant-harness
Usage
Add the following code to your Alephant-based project's Rakefile, with your own configuration:
require 'alephant/harness'
bbc_config = BBC::Cosmos::Config.app
config = {
:tables => [
{ :name => bbc_config[:lookup_table_name], :schema => 'lookup' },
{ :name => bbc_config[:sequencer_table_name], :schema => 'sequencer' }
],
:queues => [
bbc_config[:sqs_queue_name]
],
:buckets => [
bbc_config[:bucket_id]
]
}
task :harness do
Alephant::Harness::Setup.configure(config, ENV)
end
Contributing
- Fork it ( https://github.com/bbc-news/alephant-harness/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 a new Pull Request