Top Level Namespace
Instance Method Summary collapse
Instance Method Details
#zookeeper_myid ⇒ Object
4 5 6 7 8 9 |
# File 'lib/facter/zookeeperd.rb', line 4 def zookeeper_myid ip_address = Facter.value(:networking)['ip'] ip_address.split('.').reduce(0) do |t, v| (t << 8) + v.to_i end end |