1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/bin/rails
Jeremy Kemper 4bed0ab99d r2960@asus: jeremy | 2005-07-09 02:12:35 -0700
Ticket 1674 - Ruby version check
 r2961@asus:  jeremy | 2005-07-09 02:50:54 -0700
 Require RAILS_VERSION >= 1.8.2 and RAILS_RELEASE_DATE >= 2004-12-25.
 r2962@asus:  jeremy | 2005-07-09 02:54:49 -0700
 minimum_release -> min_release typo
 r2963@asus:  jeremy | 2005-07-09 02:56:14 -0700
 updated changelog


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1778 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-09 05:04:19 +00:00

17 lines
543 B
Text
Executable file

min_release = "1.8.2 (2004-12-25)"
ruby_release = "#{RUBY_VERSION} (#{RUBY_RELEASE_DATE})"
if ruby_release < min_release
abort <<-end_message
Rails requires Ruby version #{min_release} or later.
You're running #{ruby_release}; please upgrade to continue.
end_message
end
Signal.trap("INT") { puts; exit }
require File.dirname(__FILE__) + '/../lib/rails_generator'
require 'rails_generator/scripts/generate'
Rails::Generator::Base.use_application_sources!
Rails::Generator::Scripts::Generate.new.run(ARGV, :generator => 'app')