Revision 95a66717
Added by Marek Hulán over 10 years ago
app/models/operatingsystems/debian.rb | ||
---|---|---|
medium_uri(host).select(:path, :query).compact.join('?')
|
||
end
|
||
|
||
# Override the class representation, as this breaks many rails helpers
|
||
def class
|
||
Operatingsystem
|
||
end
|
||
|
||
def boot_files_uri(medium, architecture)
|
||
raise ::Foreman::Exception.new(N_("invalid medium for %s"), to_s) unless media.include?(medium)
|
||
raise ::Foreman::Exception.new(N_("invalid architecture for %s"), to_s) unless architectures.include?(architecture)
|
||
... | ... | |
name =~ /ubuntu/i ? "ubuntu" : "debian"
|
||
end
|
||
|
||
def self.model_name
|
||
superclass.model_name
|
||
end
|
||
|
||
end
|
Also available in: Unified diff
Fixes #3962 - Refactor class overwriting