Project

General

Profile

« Previous | Next » 

Revision 9a9ec5b1

Added by Daniel Lobato Garcia over 8 years ago

Refs #3809 - Enable Rails delegate cop

View differences:

app/models/operatingsystems/redhat.rb
class Redhat < Operatingsystem
PXEFILES = {:kernel => "vmlinuz", :initrd => "initrd.img"}
class << self
delegate :model_name, :to => :superclass
end
# outputs kickstart installation medium based on the medium type (NFS or URL)
# it also convert the $arch string to the current host architecture
def mediumpath(host)
......
s.strip!
s.blank? ? description : s
end
def self.model_name
superclass.model_name
end
end

Also available in: Unified diff