Module: Umu::Generators
- Included in:
- Umu
- Defined in:
- lib/umu/generators.rb
Overview
Umu is a tool for automatically generating Rails code.
Constant Summary collapse
- GENERATORS =
{ model: ModelMaker, controller: ControllerMaker, migration: MigrationMaker, application_record: ApplicationRecordMaker, helper: HelperMaker, channel: ChannelMaker, job: JobMaker, task: TaskMaker, mailer: MailerMaker, mailbox: MailboxMaker, benchmark: BenchmarkMaker, resource: ResourceMaker }.freeze
Class Method Summary collapse
Class Method Details
.run(target) ⇒ Object
35 36 37 38 39 40 |
# File 'lib/umu/generators.rb', line 35 def self.run(target) generator = GENERATORS[target.to_sym].generator raise "Invalid target #{target}" unless generator generator end |