Class: Evergreen::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/evergreen/server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#suiteObject (readonly)

Returns the value of attribute suite


3
4
5
# File 'lib/evergreen/server.rb', line 3

def suite
  @suite
end

Instance Method Details

#serveObject


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