Class: DevSystem::BenchCommand
- Inherits:
-
Command
- Object
- Liza::Unit
- Liza::Controller
- Command
- DevSystem::BenchCommand
- Defined in:
- lib/dev_system/sub/bench/commands/bench_command.rb
Class Method Summary collapse
Methods inherited from Command
Methods inherited from Liza::Controller
color, inherited, on_connected
Methods inherited from Liza::Unit
const_missing, division, part, system, #system, test_class
Class Method Details
.call(args) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/dev_system/sub/bench/commands/bench_command.rb', line 3 def self.call args # 1. LOG log "args = #{args.inspect}" # 2. FIND bench return NotFoundBench.call args if args.none? bench = args[0] log({bench:}) begin bench_klass = Liza.const "#{bench}_bench" rescue Liza::ConstNotFound bench_klass = NotFoundBench end # 3. CALL bench_klass.call args[1..-1] end |