Class: App
- Inherits:
-
Thor
- Object
- Thor
- App
- Defined in:
- bin/mach5
Instance Method Summary collapse
Instance Method Details
#benchmark ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'bin/mach5', line 13 def benchmark runner = Mach5::Runner.new(eval(File.open("Mach5file").readlines.join)) if .list runner.list_benchmarks.each do |benchmark| puts benchmark end elsif .only runner.benchmark(only: .only) else runner.benchmark(all: .all) end end |
#chart ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'bin/mach5', line 30 def chart runner = Mach5::Runner.new(eval(File.open("Mach5file").readlines.join)) if .list runner.list_charts.each do |chart| puts chart end elsif .only runner.chart(only: .only) else runner.chart(all: .all) end end |