# File lib/deltacloud/helpers/application_helper.rb, line 258 def address_type(address) case address when /^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})?$/; :ipv4 when /^.*:([\-\d]+)$/; :vnc when /^(\S{1,2}:\S{1,2}:\S{1,2}:\S{1,2}:\S{1,2}:\S{1,2})?$/; :mac else :hostname end end