diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-28 23:52:34 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-28 23:52:34 +0000 |
commit | 25410d53cf0e645b853776539c963aedc30d49b1 (patch) | |
tree | 6ffe90f4313aef786db47fd55ee687e7a9672f1d /railties/lib/rails_generator/generators/components/plugin/templates | |
parent | 7376da4a2cc10881d9fdc27d4b3da0af8b3ab45c (diff) | |
download | rails-25410d53cf0e645b853776539c963aedc30d49b1.tar.gz rails-25410d53cf0e645b853776539c963aedc30d49b1.tar.bz2 rails-25410d53cf0e645b853776539c963aedc30d49b1.zip |
Added that plugins can carry generators and that generator stub files can be created along with new plugins using script/generate plugin <name> --with-generator [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2797 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator/generators/components/plugin/templates')
-rw-r--r-- | railties/lib/rails_generator/generators/components/plugin/templates/USAGE | 8 | ||||
-rw-r--r-- | railties/lib/rails_generator/generators/components/plugin/templates/generator.rb | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/railties/lib/rails_generator/generators/components/plugin/templates/USAGE b/railties/lib/rails_generator/generators/components/plugin/templates/USAGE new file mode 100644 index 0000000000..f927799428 --- /dev/null +++ b/railties/lib/rails_generator/generators/components/plugin/templates/USAGE @@ -0,0 +1,8 @@ +Description: + Explain the generator + +Example: + ./script/generate <%= file_name %> Thing + + This will create: + what/will/it/create
\ No newline at end of file diff --git a/railties/lib/rails_generator/generators/components/plugin/templates/generator.rb b/railties/lib/rails_generator/generators/components/plugin/templates/generator.rb new file mode 100644 index 0000000000..3e800df6c5 --- /dev/null +++ b/railties/lib/rails_generator/generators/components/plugin/templates/generator.rb @@ -0,0 +1,8 @@ +class <%= class_name %>Generator < Rails::Generator::NamedBase + def manifest + record do |m| + # m.directory "lib" + # m.template 'README', "README" + end + end +end |