began gemification process
[fuzed.git] / join_cluster
blobe25867f5fda172a1eaabc7a0e4d723c34cd617f4
1 #!/usr/bin/env escript
3 main(_X) ->
4   code:add_patha("./elibs"),
5   erlang:set_cookie(node(), 'AWZVAQXUPGVPKZQLYEUP'),
6   io:format("Adding 4 responders to the demo cluster: chisai.local.~n"),
7   Command = "./helloworld/script/rack.rb",
8   lists:map(fun(Cmd) -> create_and_add(Cmd) end, lists:duplicate(4, Command)).
10 create_and_add(Cmd) ->
11   port_test:provide_responder(server@chisai.local, port_wrapper:wrap(Cmd)).