I need to distribute some Erlang code which is closed source to a client. I think the easiest way would be to simply give an Erlang shell command to pull the code from a remote host. The remote host will be an Erlang VM which does not shared the same secret cookie as the client. How can I do this?
For example, if I am in the Erlang shell, I would like something thats lets me do:
load_lib(mysql).
load_lib(postgres).
: and then Erlang would download and install the BEAM files, and would allow me to use the mysql: and postgres: Erlang modules from that point on
Update: 1) I have been suggested to use tarballs, so I guess the procedure in this case would be something like:
Find Erlang lib directory and CD to it
wget tarball to the current directory
Not as nice as gem install, but its the best that Erlang can do