Module: BenchmarkMaker
- Extended by:
- Template
- Defined in:
- lib/umu/generators/benchmark_maker.rb
Constant Summary
Constants included from Color
Class Method Summary collapse
Methods included from Template
checker, cover, hover, pointer
Class Method Details
.generator ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/umu/generators/benchmark_maker.rb', line 8 def generator benchmark_name = Umu::Inputter.input('ベンチマーク名を入力してください (例:CreditCard)') cover(1) puts "#=> rails generate benchmark #{benchmark_name}" confirm_content = '上記コマンド実行しますか?' run_command = Umu::Selector.single_choice(confirm_content) cover(1) puts confirm_content + (run_command ? 'はい' : 'いいえ') system(command) if run_command true end |