Class: Thin::Glazed::Capybara

Inherits:
Object
  • Object
show all
Defined in:
lib/thin/glazed/capybara.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app, port) ⇒ Capybara

Returns a new instance of Capybara.



6
7
8
9
10
11
# File 'lib/thin/glazed/capybara.rb', line 6

def initialize(app, port)
  @app, @port = app, port

  SslRequirement.ssl_port     = ssl_port
  SslRequirement.non_ssl_port = port
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



4
5
6
# File 'lib/thin/glazed/capybara.rb', line 4

def app
  @app
end

#portObject (readonly)

Returns the value of attribute port.



4
5
6
# File 'lib/thin/glazed/capybara.rb', line 4

def port
  @port
end

Instance Method Details

#run_serverObject



13
14
15
16
# File 'lib/thin/glazed/capybara.rb', line 13

def run_server
  Thin::Logging.silent = true
  Rack::Handler::ThinGlazed.run app, :Port => port, :ProxyPort => ssl_port
end