class NSIVideoGranulate::FakeServerManager
Public Instance Methods
start_server(port=9886)
click to toggle source
Start the nsi.videogranulate 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/nsivideogranulate/fake_server.rb, line 56 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 fake server
# File lib/nsivideogranulate/fake_server.rb, line 66 def stop_server @thread.kill self end