class NSISam::FakeServerManager
Public Instance Methods
start_server(port=8888)
click to toggle source
Start the SAM 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/nsisam/fake_server.rb, line 65 def start_server(port=8888) @thread = Thread.new do Server.run! :port => port end sleep(1) self end
stop_server()
click to toggle source
Stop the SAM fake server
# File lib/nsisam/fake_server.rb, line 74 def stop_server @thread.kill self end