Module: BenchmarkMaker
- Extended by:
- Template
- Defined in:
- lib/umu/generators/benchmark_maker.rb
Overview
BenchmarkMaker is a module for generating benchmark.
Constant Summary
Constants included from Color
Class Method Summary collapse
Methods included from Template
checker, command, cover, hover, logo, pointer, show_command
Class Method Details
.generator ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/umu/generators/benchmark_maker.rb', line 10 def generator benchmark_name = Umu::Inputter.input(I18n.t('benchmark.make_name')) cover(1) show_command('benchmark', benchmark_name) confirm_content = I18n.t('common.run_command') run_command = Umu::Selector.single_choice(confirm_content) cover(1) command = command('benchmark', benchmark_name) puts confirm_content + (run_command ? I18n.t('affirm') : I18n.t('deny')) system(command) if run_command true end |