Project

batteries

0.0
No commit activity in last 3 years
No release in over 3 years
Powering your Roda/Sinatra applications
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.0
~> 10.0
 Project Readme

Batteries (included)

Tired of copying the same Rake tasks to every single Roda/Sinatra project you start? Me too.

Use batteries to get a head start.

Installation

Add this line to your application's Gemfile:

gem 'batteries'

And then execute:

$ bundle

Or install it yourself as:

$ gem install batteries

Usage

Incorporate the Batteries Rake tasks into your Rakefile, using some sane defaults:

Batteries::Tasks.new

But you'll likely want something a bit more advanced, to suit your particular application layout:

Batteries::Tasks.new do |t|
  t.migrations.database = "::DB"

  # Customize for your application
  t.migrations.setup_hook = proc do
    require_relative "env"
require_relative "db"
  end
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/adam12/batteries.

I love pull requests! If you fork this project and modify it, please ping me to see if your changes can be incorporated back into this project.

That said, if your feature idea is nontrivial, you should probably open an issue to discuss it before attempting a pull request.

License

The gem is available as open source under the terms of the MIT License.