Class: Thin::Glazed::Capybara
- Inherits:
-
Object
- Object
- Thin::Glazed::Capybara
- Defined in:
- lib/thin/glazed/capybara.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(app, port) ⇒ Capybara
constructor
A new instance of Capybara.
- #run_server ⇒ Object
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
#app ⇒ Object (readonly)
Returns the value of attribute app.
4 5 6 |
# File 'lib/thin/glazed/capybara.rb', line 4 def app @app end |
#port ⇒ Object (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_server ⇒ Object
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 |