aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/plugin.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/rails/commands/plugin.rb')
-rw-r--r--railties/lib/rails/commands/plugin.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/railties/lib/rails/commands/plugin.rb b/railties/lib/rails/commands/plugin.rb
new file mode 100644
index 0000000000..837fe0ec10
--- /dev/null
+++ b/railties/lib/rails/commands/plugin.rb
@@ -0,0 +1,9 @@
+if ARGV.first != "new"
+ ARGV[0] = "--help"
+else
+ ARGV.shift
+end
+
+require 'rails/generators'
+require 'rails/generators/rails/plugin/plugin_generator'
+Rails::Generators::PluginGenerator.start