Sha256: 9f07bb642ea0a2b3c8619ec87550445dfc608b3d5c45645363c0defb092b0560

Contents?: true

Size: 359 Bytes

Versions: 61

Compression:

Stored size: 359 Bytes

Contents

class Dispatcher
  class <<self
    attr_accessor :time_to_sleep
    attr_accessor :raise_exception
    attr_accessor :dispatch_hook

    def dispatch(cgi, session_options = nil, output = $stdout)
      dispatch_hook.call(cgi) if dispatch_hook
      sleep(time_to_sleep || 0)
      raise raise_exception, "Something died" if raise_exception
    end
  end
end

Version data entries

61 entries across 61 versions & 2 rubygems

Version Path
backlog-0.7.1 vendor/rails/railties/test/mocks/dispatcher.rb
backlog-0.7.10 vendor/rails/railties/test/mocks/dispatcher.rb
backlog-0.7.11 vendor/rails/railties/test/mocks/dispatcher.rb
backlog-0.7.12 vendor/rails/railties/test/mocks/dispatcher.rb
backlog-0.7.2 vendor/rails/railties/test/mocks/dispatcher.rb
backlog-0.7.3 vendor/rails/railties/test/mocks/dispatcher.rb
backlog-0.7.5 vendor/rails/railties/test/mocks/dispatcher.rb
backlog-0.7.4 vendor/rails/railties/test/mocks/dispatcher.rb
backlog-0.7.6 vendor/rails/railties/test/mocks/dispatcher.rb
backlog-0.7.7 vendor/rails/railties/test/mocks/dispatcher.rb
backlog-0.7.8 vendor/rails/railties/test/mocks/dispatcher.rb
backlog-0.7.9 vendor/rails/railties/test/mocks/dispatcher.rb
backlog-0.8.0 vendor/rails/railties/test/mocks/dispatcher.rb
backlog-0.8.1 vendor/rails/railties/test/mocks/dispatcher.rb
backlog-0.9.0 vendor/rails/railties/test/mocks/dispatcher.rb
backlog-0.9.1 vendor/rails/railties/test/mocks/dispatcher.rb
radiant-0.6.0 vendor/rails/railties/test/mocks/dispatcher.rb
radiant-0.6.1 vendor/rails/railties/test/mocks/dispatcher.rb
radiant-0.6.2 vendor/rails/railties/test/mocks/dispatcher.rb
radiant-0.6.3 vendor/rails/railties/test/mocks/dispatcher.rb