-
Notifications
You must be signed in to change notification settings - Fork 64
Interactive Shell
juanpaco edited this page Sep 12, 2010
·
2 revisions
Here is how to create a irb mapper session:
- First shell: Start the simple-agent example, see Testing Nanite.
- Second shell: Start an interactive mapper:
nanite-mapper -i -u mapper -p testing -v /nanite
- -i interactive
- -u user mapper
- -p pass testing
- -v vhost nanite
- Let’s request our echo service:
request("/simple/echo", "keep on rocking") { |res| p res }
And we got a result:
INFO: SEND [request] <71f6f654c86f4f3a5f8049018ede4ed5> /simple/echo from mapper to foo INFO: RECV [result] <71f6f654c86f4f3a5f8049018ede4ed5> from foo {"nanite-foo"=>"Nanite said keep on rocking @ Sat Sep 12 02:41:40 -0300 2009"}