Module: BenchBloc::Raker

Includes:
Rake::DSL
Included in:
BenchBloc
Defined in:
lib/bench_bloc/raker/raker.rb

Instance Method Summary collapse

Instance Method Details

#bench_tasksObject



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_taskObject



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