1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

'rails generate plugin' --with-generator option has changed to --generator. Updated the output that is seen after executing 'rails generate plugin yaffle --generator'

This commit is contained in:
Andrew Ferk 2010-09-18 00:41:38 -05:00
parent 0c6ac67d2f
commit 89eef55fb3

View file

@ -52,44 +52,47 @@ NOTE: The aforementioned instructions will work for sqlite3. For more detailed
h4. Generate the Plugin Skeleton h4. Generate the Plugin Skeleton
Rails ships with a plugin generator which creates a basic plugin skeleton. Pass the plugin name, either 'CamelCased' or 'under_scored', as an argument. Pass +--with-generator+ to add an example generator also. Rails ships with a plugin generator which creates a basic plugin skeleton. Pass the plugin name, either 'CamelCased' or 'under_scored', as an argument. Pass +--generator+ to add an example generator also.
This creates a plugin in +vendor/plugins+ including an +init.rb+ and +README+ as well as standard +lib+, +task+, and +test+ directories. This creates a plugin in +vendor/plugins+ including an +init.rb+ and +README+ as well as standard +lib+, +task+, and +test+ directories.
Examples: Examples:
<shell> <shell>
rails generate plugin yaffle rails generate plugin yaffle
rails generate plugin yaffle --with-generator rails generate plugin yaffle --generator
</shell> </shell>
To get more detailed help on the plugin generator, type +rails generate plugin+. To get more detailed help on the plugin generator, type +rails generate plugin+.
Later on this guide will describe how to work with generators, so go ahead and generate your plugin with the +--with-generator+ option now: Later on this guide will describe how to work with generators, so go ahead and generate your plugin with the +--generator+ option now:
<shell> <shell>
rails generate plugin yaffle --with-generator rails generate plugin yaffle --generator
</shell> </shell>
You should see the following output: You should see the following output:
<shell> <shell>
create vendor/plugins/yaffle/lib create vendor/plugins/yaffle
create vendor/plugins/yaffle/tasks
create vendor/plugins/yaffle/test
create vendor/plugins/yaffle/README
create vendor/plugins/yaffle/MIT-LICENSE
create vendor/plugins/yaffle/Rakefile
create vendor/plugins/yaffle/init.rb create vendor/plugins/yaffle/init.rb
create vendor/plugins/yaffle/install.rb create vendor/plugins/yaffle/install.rb
create vendor/plugins/yaffle/MIT-LICENSE
create vendor/plugins/yaffle/Rakefile
create vendor/plugins/yaffle/README
create vendor/plugins/yaffle/uninstall.rb create vendor/plugins/yaffle/uninstall.rb
create vendor/plugins/yaffle/lib
create vendor/plugins/yaffle/lib/yaffle.rb create vendor/plugins/yaffle/lib/yaffle.rb
create vendor/plugins/yaffle/tasks/yaffle_tasks.rake invoke generator
create vendor/plugins/yaffle/test/core_ext_test.rb inside vendor/plugins/yaffle
create vendor/plugins/yaffle/generators create lib/generators
create vendor/plugins/yaffle/generators/yaffle create lib/generators/yaffle_generator.rb
create vendor/plugins/yaffle/generators/yaffle/templates create lib/generators/USAGE
create vendor/plugins/yaffle/generators/yaffle/yaffle_generator.rb create lib/generators/templates
create vendor/plugins/yaffle/generators/yaffle/USAGE invoke test_unit
inside vendor/plugins/yaffle
create test
create test/yaffle_test.rb
create test/test_helper.rb
</shell> </shell>
h4. Organize Your Files h4. Organize Your Files