Project

General

Profile

« Previous | Next » 

Revision 5c02cfe5

Added by Daniel Lobato Garcia over 9 years ago

Refs #3809 - Enable cop StringConversionInInterpolation

View differences:

app/models/operatingsystems/solaris.rb
PXEFILES = {:initrd => "x86.miniroot", :kernel => "multiboot"}
def file_prefix
"#{to_s}".gsub(/[\s\(\)]/,"-").gsub("--", "-").gsub(/-\Z/, "")
"#{self}".gsub(/[\s\(\)]/,"-").gsub("--", "-").gsub(/-\Z/, "")
end
# sets the prefix for the tftp files based on the OS

Also available in: Unified diff