Skip to content
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.

using fake_ftp in irb

sax edited this page Mar 5, 2011 · 1 revision

irb only runs the master thread of a script by default. In order to run a FakeFtp::Server instance in a console, you must run irb in --noreadline mode.

$> irb --noreadline
 > s = FakeFtp::Server.new(21212, 21213)
 > s.start

Now you can connect to the server in another irb session.

Clone this wiki locally