Class: Evergreen::Server
- Inherits:
-
Object
- Object
- Evergreen::Server
- Defined in:
- lib/evergreen/server.rb
Instance Attribute Summary collapse
-
#suite ⇒ Object
readonly
Returns the value of attribute suite.
Instance Method Summary collapse
-
#initialize(suite) ⇒ Server
constructor
A new instance of Server.
- #serve ⇒ Object
Constructor Details
#initialize(suite) ⇒ Server
Returns a new instance of Server.
5 6 7 |
# File 'lib/evergreen/server.rb', line 5 def initialize(suite) @suite = suite end |
Instance Attribute Details
#suite ⇒ Object (readonly)
Returns the value of attribute suite.
3 4 5 |
# File 'lib/evergreen/server.rb', line 3 def suite @suite end |
Instance Method Details
#serve ⇒ Object
9 10 11 12 13 |
# File 'lib/evergreen/server.rb', line 9 def serve server.boot Launchy.open(server.url('/')) sleep end |