Slicker way of quiting on less than Ruby 1.8.2

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@810 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 38ea84aa
#!/usr/local/bin/ruby
puts "Rails requires Ruby 1.8.2" and exit if RUBY_VERSION < "1.8.2"
abort "Rails requires Ruby 1.8.2" if RUBY_VERSION < "1.8.2"
require File.dirname(__FILE__) + '/../lib/rails_generator'
require 'rails_generator/scripts/generate'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册