Module: FiveApples

Defined in:
lib/version.rb,
lib/fa_utils.rb,
lib/fiveapples.rb

Defined Under Namespace

Classes: Server

Constant Summary collapse

VERSION =
'0.0.7'

Class Method Summary collapse

Class Method Details

.test_host_ipObject



14
15
16
17
# File 'lib/fa_utils.rb', line 14

def self.test_host_ip
  net = Socket.ip_address_list.detect(&:ipv4_private?)
  net.nil? ? 'localhost' : net.ip_address
end