Skip to content

Instantly share code, notes, and snippets.

@ppworks
Created January 19, 2012 02:25
Show Gist options
  • Save ppworks/1637289 to your computer and use it in GitHub Desktop.
Save ppworks/1637289 to your computer and use it in GitHub Desktop.
rails task template
namespace :hoge do
desc 'fugo'
task :fugo => :environment do
ActiveRecord::Base.logger = Logger.new(STDOUT)
puts Benchmark::CAPTION
Benchmark.bm do |x|
x.report("all\n") {
}
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment