diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-11-09 21:15:41 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-11-09 21:15:41 +0000 |
commit | 5879a2e9192dc9b6e1e17d2b6d14b26df96ff41b (patch) | |
tree | 683ab8ee56964be7acabfe98955cc941f2daac01 /railties/lib/commands/performance | |
parent | 3661eacfbde129ea1ed4dbecf1789175c80ce73b (diff) | |
download | rails-5879a2e9192dc9b6e1e17d2b6d14b26df96ff41b.tar.gz rails-5879a2e9192dc9b6e1e17d2b6d14b26df96ff41b.tar.bz2 rails-5879a2e9192dc9b6e1e17d2b6d14b26df96ff41b.zip |
Changed all script/* to use /usr/bin/env ruby instead of hard-coded Ruby path. public/dispatcher.* still uses the hard-coded path for compatibility with web servers that dont have Ruby in path [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2959 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/commands/performance')
-rw-r--r-- | railties/lib/commands/performance/benchmarker.rb | 2 | ||||
-rw-r--r-- | railties/lib/commands/performance/profiler.rb | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/railties/lib/commands/performance/benchmarker.rb b/railties/lib/commands/performance/benchmarker.rb index b12cf57215..47b0940039 100644 --- a/railties/lib/commands/performance/benchmarker.rb +++ b/railties/lib/commands/performance/benchmarker.rb @@ -1,5 +1,3 @@ -#!/usr/local/bin/ruby - if ARGV.empty? puts "Usage: ./script/perform benchmarker [times] 'Person.expensive_way' 'Person.another_expensive_way' ..." exit 1 diff --git a/railties/lib/commands/performance/profiler.rb b/railties/lib/commands/performance/profiler.rb index f599ad6635..83e763abda 100644 --- a/railties/lib/commands/performance/profiler.rb +++ b/railties/lib/commands/performance/profiler.rb @@ -1,4 +1,3 @@ -#!/usr/local/bin/ruby if ARGV.empty? $stderr.puts "Usage: ./script/perform profiler 'Person.expensive_method(10)' [times]" exit(1) |