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
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
5 6 7 8 9 10 |
# File 'lib/evergreen/server.rb', line 5 def serve server.boot Launchy.open("http://#{server.host}:#{server.port}/#{Evergreen.mounted_at.to_s}") trap('SIGINT') { puts 'Shutting down...' ; exit 0 } sleep end |