Skip to content

Commit

Permalink
Merge pull request #21 from gangleton/master
Browse files Browse the repository at this point in the history
Namespace rake rack_load task in README and in default output
  • Loading branch information
schneems committed Jan 15, 2015
2 parents 5550752 + c5721eb commit f0e3c9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ $ rake -f perf.rake perf:mem RAILS_ENV=development
Using Rails? You don't need to do anything special. If you're using Rack, you need to tell us how to boot your app. In your `perf.rake` file add a task:

```
task :rack_load do
DERAILED_APP = # your code here
namespace :perf do
task :rack_load do
DERAILED_APP = # your code here
end
end
```

Expand Down
6 changes: 4 additions & 2 deletions lib/derailed_benchmarks/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@
puts "You need to tell derailed how to boot your app"
puts "In your perf.rake add:"
puts
puts "task :rack_load do"
puts " # DERAILED_APP = your code here"
puts "namespace :perf do"
puts " task :rack_load do"
puts " # DERAILED_APP = your code here"
puts " end"
puts "end"
end

Expand Down

0 comments on commit f0e3c9d

Please sign in to comment.