Permalink
Browse files

added some useful rake tasks and updated the readme

  • Loading branch information...
1 parent d2b76ca commit 1e77bcd6eacaa95aee2ace57365d752c2a0313c0 @gnarmis gnarmis committed Mar 3, 2012
Showing with 17 additions and 0 deletions.
  1. +2 −0 README.md
  2. +15 −0 Rakefile
View
@@ -20,6 +20,8 @@ So here it is.
- run `bundle install` (add other gems you may need to the Gemfile beforehand)
+- run `rake` or `rake help` to see available tasks
+
- run `rake spec` (just for fun)
- start building your project
View
@@ -1,8 +1,23 @@
require 'rspec/core/rake_task'
+task :default => :help
+
desc "Run specs"
task :spec do
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = './spec/**/*_spec.rb'
end
end
+
+desc "Run IRB console with app environment"
+task :console do
+ puts "Loading development console..."
+ system("irb -r ./config/boot.rb")
+end
+
+desc "Show help menu"
+task :help do
+ puts "Available rake tasks: "
+ puts "rake console - Run a IRB console with all enviroment loaded"
+ puts "rake spec - Run specs and calculate coverage"
+end

0 comments on commit 1e77bcd

Please sign in to comment.