class NSICloudooo::FakeServerManager
Public Instance Methods
start_server(port=9886)
click to toggle source
Start the nsi.cloudooo fake server
@param [Fixnum] port the port where the fake server will listen
* make sure there's not anything else listenning on this port
# File lib/nsicloudooo/fake_server.rb, line 63 def start_server(port=9886) @thread = Thread.new do Server.prepare Server.run! :port => port end sleep(1) self end
stop_server()
click to toggle source
Stop the SAM fake server
# File lib/nsicloudooo/fake_server.rb, line 73 def stop_server @thread.kill self end