Sha256: 6804da460f2258dd4d25767dc95f971ff85ff91bf5ec21b62bf3f5b6c8276537
Contents?: true
Size: 1012 Bytes
Versions: 7
Compression:
Stored size: 1012 Bytes
Contents
# Generator Guide The ``ngenerator`` is a lite application designed to make easier the application management. Actually, it allows you to create new application, controller, or route. ## Usage ```bash ngenerator --mode <options> ``` ### Generate new application ```bash ngenerator --application <name> ``` Create a directory name ``<name>``, initialize a git repository and create basic files. ### Generate new controller ```bash ngenerator --controller <name> ``` Generate a file ``/app/<downcasename_controller.rb>`` with a class named ``CapitalizeNameController`` inherited by ``Nephos::Controller``. ### Generate new route ```bash ngenerator --route VERB "/url" "Controller#Method" # or also ngenerator --route VERB "/url" Controller Method ``` Generate a new route based on the parameters, added to the ``routes.rb`` file. ### Remove a route ```bash ngenerator --rm --route VERB "/url" "Controller#Method" ``` It will remove a route, generator by the generator, from the ``routes.rb`` file.
Version data entries
7 entries across 7 versions & 1 rubygems