bin/bum in bum-0.0.13 vs bin/bum in bum-0.0.14
- old
+ new
@@ -5,22 +5,10 @@
require 'rubygems'
require 'net/dns/mdns-sd'
require 'net/dns/resolv-mdns'
require 'net/dns/resolv-replace'
-master_address = nil
-puts 'Looking for the master node...'
-service = Net::DNS::MDNSSD.browse('_demo._tcp') { |r|
- Net::DNS::MDNSSD.resolve(r.name, r.type) do |rr|
- puts "Found #{rr.target}!"
- master_address = rr.target
- end
-}
-sleep 3
+master_address = ARGV[1] || 'Francis.local'
-if master_address
- require 'node'
- node = Node.new(master_address, 9125)
- node.run
-else
- puts "Couldn't find a master node. Dying."
-end
+require 'node'
+node = Node.new(master_address, 9125)
+node.run