desc 'For test params' task :test => :environment do puts "get params, I am #{ENV['who']}" end使用方法rake test who="yang"