Module: BenchBloc::Raker
Instance Method Summary collapse
Instance Method Details
#bench_tasks ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/bench_bloc/raker/raker.rb', line 4 def bench_tasks Rake.application.tasks.select do |task| task.name.starts_with?("bench_bloc") && !task.name.ends_with?("_util") && task.name != "bench_bloc:all" end end |
#put_all_task ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/bench_bloc/raker/raker.rb', line 12 def put_all_task desc "Run all benchmarks" task all: :environment do bench_tasks.each(&:execute) Rake::Task["bench_bloc:clear_tests_util"].invoke end end |