aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator/generators/components/plugin/templates
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/rails_generator/generators/components/plugin/templates')
-rw-r--r--railties/lib/rails_generator/generators/components/plugin/templates/USAGE8
-rw-r--r--railties/lib/rails_generator/generators/components/plugin/templates/generator.rb8
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