Simple gem for re-using common rake tasks across Rails apps
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.document
.gitignore
Gemfile
Gemfile.lock
LICENSE.txt
README.md
Rakefile
rake-kit.gemspec

README.md

rake-kit

Rake-kit is a pack of useful rake tasks to reuse across different Rails apps.

What it does

# 'db' group
rake db:dump                     # dumps the database to a sql file
rake db:dump:import              # imports the rake_kit_development_dump.sql file to the current db
rake db:reset                    # This resets database (drop, create, migrate, seed)
rake db:truncate                 # Truncates tables

# 'source' group
rake source:detab                # Replace all tabs in source code files with two spaces
rake source:detrail              # Remove trailing whitespace on the ends of lines
rake source:gsub[pattern,result] # Replace all instances of {pattern} with {result}

Installiation

Include it in Gemfile

gem 'rake-kit'

Credits

Some tasks contain the code done by following people:

Copyright

Copyright (c) 2011 Stanislaw Pankevich.