Sha256: 5d38b9553d6c8c4d7585929eff8ede205dabd1a3b536a32a2e12da641e7ca908

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

Description:

    Creates the additional directories and files for development using the
    Upgrow architecture. This generator will create the base classes for your
    Actions, Inputs, Repositories, and Models. It will also ask if you would
    like to convert your existing Ruby files under `app/models` into Upgrow
    Records automatically. If you say yes, it will move those files to
    `app/records` and change their class names to include the `Record` suffix.
    In case an `ApplicationRecord` exists, the generator will assume this to be
    the base class for all Records, and it will include the `Upgrow::Record`
    module in it.

Example:

    `bin/rails generate upgrow:install`

    Would you like to convert all models into Records? yes
        move  app/models/application_record.rb -> app/records/application_record.rb
        move  app/models/article.rb -> app/records/article_record.rb
       exist  app
      create  app/actions/application_action.rb
      create  app/inputs/application_input.rb
      create  app/models/application_model.rb
      create  app/repositories/application_repository.rb
      invoke  test_unit

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
upgrow-0.0.5 lib/generators/upgrow/install/USAGE