From 0a0ac868453e9d8d9ee1dac6a7eb274772235b05 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 29 Sep 2005 12:18:51 +0000 Subject: Removed all the scripts in script/* and replaced it with one generic portal: script/run git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2411 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/bin/runner | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 railties/bin/runner (limited to 'railties/bin/runner') 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 -- cgit v1.2.3