Skip to content

Instantly share code, notes, and snippets.

@davebryson
davebryson / ruby_2_epmd.rb
Created April 24, 2009 16:26
Example of talking to Erlang's epmd from Ruby
# Example of connecting to Epmd to get the port number
# of an Erlang node
require 'rubygems'
require 'eventmachine'
class EpmdConnection < EM::Connection
include EM::Deferrable
attr_accessor :nodename
def self.lookup_node(nodename)