aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/plugin_new.rb
blob: 0287ba0638c092ed497749d62f33eb02a0b22c77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
require 'rubygems' if ARGV.include?("--dev")

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