class Minicron::Hub::Host

Public Instance Methods

name() click to toggle source

Default the name of the host to the fqdn itself if no name is set

# File lib/minicron/hub/models/host.rb, line 9
def name
  if read_attribute(:name) == '' || read_attribute(:name).nil?
    read_attribute(:fqdn)
  else
    read_attribute(:name)
  end
end