diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-07-01 11:36:47 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-07-01 11:36:47 -0700 |
commit | ab6601ccdf15c5b3951b7762387f329c07e39edb (patch) | |
tree | d576e63ff757e15e0dd48f60d6ab73ff7d7e9eb6 /railties/lib/rails/commands/plugin.rb | |
parent | 6c82844fceb777f4ffb74fce3a12abe679136452 (diff) | |
parent | ec8d8652f36bc4bf2ea19b8f7dd264187efc99ae (diff) | |
download | rails-ab6601ccdf15c5b3951b7762387f329c07e39edb.tar.gz rails-ab6601ccdf15c5b3951b7762387f329c07e39edb.tar.bz2 rails-ab6601ccdf15c5b3951b7762387f329c07e39edb.zip |
Merge pull request #11203 from schneems/schneems/plugin_new-plugin
s/plugin_new/plugin
Diffstat (limited to 'railties/lib/rails/commands/plugin.rb')
-rw-r--r-- | railties/lib/rails/commands/plugin.rb | 9 |
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 |