Sha256: 51941d1da1422857e6878c3e67a1c1a6670e00a3f2eaf7dc5cfffd9c03214084
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 Bytes
Contents
class DevSystem::NotFoundGenerator < DevSystem::Generator def self.call args # 1. LOG log :higher, "Called #{self}.#{__method__} with args #{args}" puts # 2. FIND generators App.eager_load_all generators = Liza::Generator.descendants log "Liza comes with #{generators.count} generators you can use." puts log "Here they are:" puts # 3. LIST generators keys = generators.map { |k| k.last_namespace.snakecase[0..-11] }.sort keys.reject! { |s| s == "not_found" } keys.each { |s| log "liza generate #{s}" } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lizarb-1.0.3 | lib/dev_system/dev/controllers/generators/not_found_generator.rb |