Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8017

Show
Ignore:
Timestamp:
10/25/07 20:46:50 (11 months ago)
Author:
bitsweat
Message:

/ default uri, -b shortcut

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/request_profiler.rb

    r8016 r8017  
    8888 
    8989    def default_uri 
    90       '/benchmarks/hello
     90      '/
    9191    end 
    9292 
     
    127127        opt.banner = "USAGE: #{$0} uri [options]" 
    128128 
    129         opt.on('-u', '--uri [URI]', 'Request URI. Defaults to http://localhost:3000/benchmarks/hello') { |v| options[:uri] = v } 
     129        opt.on('-u', '--uri [URI]', 'Request URI. Defaults to http://localhost:3000/') { |v| options[:uri] = v } 
    130130        opt.on('-n', '--times [0000]', 'How many requests to process. Defaults to 1000.') { |v| options[:n] = v.to_i } 
     131        opt.on('-b', '--benchmark', 'Benchmark instead of profiling') { |v| options[:benchmark] = v } 
    131132        opt.on('--method [GET]', 'HTTP request method. Defaults to GET.') { |v| options[:method] = v.upcase } 
    132133        opt.on('--fixture [FILE]', 'Path to POST fixture file') { |v| options[:fixture] = v } 
    133         opt.on('--benchmark', 'Benchmark instead of profiling') { |v| options[:benchmark] = v } 
    134134        opt.on('--open [CMD]', 'Command to open profile results. Defaults to "open %s &"') { |v| options[:open] = v } 
    135135        opt.on('-h', '--help', 'Show this help') { puts opt; exit }