Sha256: 37da482a70a90cfc96c3b88461ff3e84db46a4cbbea41531f7f26bc6d06c2966

Contents?: true

Size: 377 Bytes

Versions: 1

Compression:

Stored size: 377 Bytes

Contents

class DevSystem::CommandGenerator < DevSystem::ControllerGenerator

  def self.call args
    log "args = #{args.inspect}"

    name = args.shift || raise("args[0] should contain NAME")
    name = name.downcase

    new.generate_app_controller :dev, :command, :commands, name
  end

end

__END__

# view install_insert_panel.rb.erb

    short :b, :bench
    short :g, :generate

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lizarb-1.0.4 lib/dev_system/dev/controllers/generators/command_generator.rb