Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespace rake rack_load task in README and in default output #21

Merged
merged 1 commit into from
Jan 15, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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