Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
napcs committed Jun 17, 2008
1 parent 1345cda commit 87869e7
Showing 1 changed file with 29 additions and 14 deletions.
43 changes: 29 additions & 14 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,55 @@ This plugin provides some useful Rake tasks that will make your life a little
eaiser. I use them in many of my projects and I invite you to do the same.


=Usage
==Databases
= Usage
== Databases

===rake db:migrate
=== rake db:migrate

The db:migrate task has been modified slightly. Running this task now clones your
test database, which is really useful if you run tests individually via TextMate
or through the commandline.

===rake db:remigrate
=== rake db:remigrate

Sometimes you just need to wipe out your database tables and start over. This
task drops your tables and starts over.
===rake db:export

=== rake db:export

Dump your database to fixtures. Stores them in /test/fixtures/live. You can then use this to load the data
back into another database, even one of a different type

===rake db:import
=== rake db:import
Load fixtures from test/fixures/live into your database. Loads fixtures dumped by using rake db:export

== Subversion
===rake svn:root

=== rake svn:root
Displays the root of your repository

===rake svn:tags
=== rake svn:tags
Displays all the tags. Assumes you use a tags/ folder and a /trunk folder

===rake svn:tag TAG=rel_1-0-0
=== rake svn:tags:last
Displays the last tag.

=== rake svn:tag TAG=rel_1-0-0
Creates a new tag from the trunk.

== Rcov
Thanks to Kevin Gisi for these tasks that make running RCov a bit easier.
Requires the RCov gem and the rails_rcov plugin

=== rake rcov:models
Runs coverage on your models
=== rake rcov:controllers
Runs coverage on your controllers
=== rake rcov:all
Runs coverage on models and controllers


==Tests
== Tests
Based on an idea from Geoffrey Grosenbach, you can run all tests in units\user_test.rb by doing

rake test:units:user:all
Expand All @@ -56,7 +71,7 @@ The same rules apply to functional tests

rake test:functionals:users:list

==Gems
== Gems

Place a file called .gems in the root of your Rails project. The file should
contain all of the gems you want to install.
Expand All @@ -70,7 +85,7 @@ You can install all of these gems easily with

rake rails:install:gems

==Plugins
== Plugins

Create a file in your Home folder called .plugins and you can have all of your
favorite plugins easily installed by doing
Expand All @@ -81,7 +96,7 @@ Just put each plugin name or repository on its own line.

Windows users need to set the HOME environment variable.

==Cleaning Up
== Cleaning Up

Run

Expand All @@ -91,4 +106,4 @@ to clean up tmp, logs, and docs in one easy command.



Copyright (c) 2007 Brian Hogan, released under the MIT license
Copyright (c) 2007-2008 Brian Hogan except where noted. Released under the MIT license

0 comments on commit 87869e7

Please sign in to comment.