Method: Instance#identified_by?

Defined in:
lib/cluster/instance.rb

#identified_by?(arg) ⇒ Boolean

Returns:

  • (Boolean)


37
38
39
40
# File 'lib/cluster/instance.rb', line 37

def identified_by?(arg)
  arg = arg.downcase
  self.id == arg or self.label == arg or self.dns == arg or self.friendly_name == arg
end