Sha256: 44cc63d0e30a976a73d627902ce8d902b03e833eb1e13dcee76fe35650cf1b84

Contents?: true

Size: 1.46 KB

Versions: 3

Compression:

Stored size: 1.46 KB

Contents

Description:
    The plugin generator creates stubs for a new plugin.

    The generator takes a plugin name as its argument.  The plugin name may be
    given in CamelCase or under_score and should not be suffixed with 'Plugin'.

    The generator creates a plugin directory in vendor/plugins that includes
    both init.rb and README files as well as lib, task, and test directories.

    It's also possible to generate stub files for a generator to go with the 
    plugin by using --with-generator

Example:
    ./script/generate plugin BrowserFilters

    This will create:
        vendor/plugins/browser_filters/README
        vendor/plugins/browser_filters/init.rb
        vendor/plugins/browser_filters/lib/browser_filters.rb
        vendor/plugins/browser_filters/test/browser_filters_test.rb
        vendor/plugins/browser_filters/tasks/browser_filters_tasks.rake

    ./script/generate plugin BrowserFilters --with-generator

    This will create:
        vendor/plugins/browser_filters/README
        vendor/plugins/browser_filters/init.rb
        vendor/plugins/browser_filters/lib/browser_filters.rb
        vendor/plugins/browser_filters/test/browser_filters_test.rb
        vendor/plugins/browser_filters/tasks/browser_filters_tasks.rake
        vendor/plugins/browser_filters/generators/browser_filters/browser_filters_generator.rb
        vendor/plugins/browser_filters/generators/browser_filters/USAGE
        vendor/plugins/browser_filters/generators/browser_filters/templates/

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails-0.14.3 lib/rails_generator/generators/components/plugin/USAGE
rails-0.14.4 lib/rails_generator/generators/components/plugin/USAGE
rails-1.0.0 lib/rails_generator/generators/components/plugin/USAGE