aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands
diff options
context:
space:
mode:
authorschneems <richard.schneeman@gmail.com>2013-07-01 00:02:19 +0300
committerschneems <richard.schneeman@gmail.com>2013-06-30 22:03:39 -0400
commitec8d8652f36bc4bf2ea19b8f7dd264187efc99ae (patch)
tree39e4d63bf6d81339a2db3f46558401a350561cea /railties/lib/rails/commands
parent6e583cdac30332f10c73bec4fe3e857b7cdb9975 (diff)
downloadrails-ec8d8652f36bc4bf2ea19b8f7dd264187efc99ae.tar.gz
rails-ec8d8652f36bc4bf2ea19b8f7dd264187efc99ae.tar.bz2
rails-ec8d8652f36bc4bf2ea19b8f7dd264187efc99ae.zip
s/plugin_new/plugin
There are historical reasons that the `plugin` command was `plugin_new`, now those are no longer applicable, we should remove the naming edge case from the project. This PR is based off of comments from #11176 ATP Railties
Diffstat (limited to 'railties/lib/rails/commands')
-rw-r--r--railties/lib/rails/commands/plugin.rb9
-rw-r--r--railties/lib/rails/commands/plugin_new.rb9
2 files changed, 9 insertions, 9 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
diff --git a/railties/lib/rails/commands/plugin_new.rb b/railties/lib/rails/commands/plugin_new.rb
deleted file mode 100644
index 4d7bf3c9f3..0000000000
--- a/railties/lib/rails/commands/plugin_new.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-if ARGV.first != "new"
- ARGV[0] = "--help"
-else
- ARGV.shift
-end
-
-require 'rails/generators'
-require 'rails/generators/rails/plugin_new/plugin_new_generator'
-Rails::Generators::PluginNewGenerator.start \ No newline at end of file