Class: Evergreen::Server

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#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



9
10
11
12
13
# File 'lib/evergreen/server.rb', line 9

def serve
  server.boot
  Launchy.open(server.url('/'))
  sleep
end