diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-29 12:33:48 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-29 12:33:48 +0000 |
commit | d219d54930a68a9c5de3705d05d5d464e5e51b54 (patch) | |
tree | 4544f6d4dfa28de85ddf35032d9eccf1d4d49729 /railties/lib/commands/generate.rb | |
parent | 0a0ac868453e9d8d9ee1dac6a7eb274772235b05 (diff) | |
download | rails-d219d54930a68a9c5de3705d05d5d464e5e51b54.tar.gz rails-d219d54930a68a9c5de3705d05d5d464e5e51b54.tar.bz2 rails-d219d54930a68a9c5de3705d05d5d464e5e51b54.zip |
Clean up the act of commands
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2412 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/commands/generate.rb')
-rwxr-xr-x | railties/lib/commands/generate.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/lib/commands/generate.rb b/railties/lib/commands/generate.rb new file mode 100755 index 0000000000..3d3db3d856 --- /dev/null +++ b/railties/lib/commands/generate.rb @@ -0,0 +1,6 @@ +require "#{RAILS_ROOT}/config/environment" +require 'rails_generator' +require 'rails_generator/scripts/generate' + +ARGV.shift if ['--help', '-h'].include?(ARGV[0]) +Rails::Generator::Scripts::Generate.new.run(ARGV) |