Class: DevSystem::NotFoundBench
- Inherits:
-
Bench
- Object
- Liza::Unit
- Liza::Controller
- Bench
- DevSystem::NotFoundBench
- Defined in:
- lib/dev_system/sub/bench/benches/not_found_bench.rb
Class Method Summary collapse
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 |
# File 'lib/dev_system/sub/bench/benches/not_found_bench.rb', line 3 def self.call args # 1. LOG log "args = #{args.inspect}" puts # 2. FIND generators benches = Liza::Bench.descendants benches -= ignored_benches # 3. LIST benches keys = benches.map { _1.last_namespace.snakecase[0..-7] }.uniq.sort log "This app has #{keys.count} benches you can use." log "Here they are:" puts keys.each { |s| log "liza bench #{s}" } end |
.ignored_benches ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/dev_system/sub/bench/benches/not_found_bench.rb', line 25 def self.ignored_benches [ self, DevSystem::NotFoundBench, (DevSystem::SortedBench if defined? SortedBench), ].uniq.compact end |