diff options
Diffstat (limited to 'railties/bin/runner')
-rw-r--r-- | railties/bin/runner | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/railties/bin/runner b/railties/bin/runner deleted file mode 100644 index c319bfe658..0000000000 --- a/railties/bin/runner +++ /dev/null @@ -1,28 +0,0 @@ -require 'optparse' - -options = { :environment => "development" } - -ARGV.options do |opts| - script_name = File.basename($0) - opts.banner = "Usage: runner 'puts Person.find(1).name' [options]" - - opts.separator "" - - opts.on("-e", "--environment=name", String, - "Specifies the environment for the runner to operate under (test/development/production).", - "Default: development") { |options[:environment]| } - - opts.separator "" - - opts.on("-h", "--help", - "Show this help message.") { puts opts; exit } - - opts.parse! -end - -ENV["RAILS_ENV"] = options[:environment] - -#!/usr/local/bin/ruby - -require File.dirname(__FILE__) + '/../config/environment' -eval(ARGV.first)
\ No newline at end of file |