Class: TestServer::Server

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

Instance Method Summary collapse

Constructor Details

#initialize(command = ServerCommands::Rackup.new) ⇒ Server

Returns a new instance of Server



11
12
13
# File 'lib/test_server/server.rb', line 11

def initialize(command = ServerCommands::Rackup.new)
  @command = command
end

Instance Method Details

#startObject



15
16
17
# File 'lib/test_server/server.rb', line 15

def start
  exec command.to_s
end