class SyncWrap::Ubuntu
Customizations for Ubuntu and derivatives. Specific distros/versions may further specialize.
Attributes
distro_version[RW]
Ubuntu version, i.e. '14.04' or '12.04.4'. No default value.
ubuntu_version[RW]
Ubuntu version, i.e. '14.04' or '12.04.4'. No default value.
Public Instance Methods
debian_version()
click to toggle source
Return SyncWrap::Debian#debian_version if specified, or provide comparable default Debian version if ubuntu_vesion is specified. This is an approximation of the LTS lineage.
Calls superclass method
# File lib/syncwrap/components/ubuntu.rb, line 33 def debian_version super || ( version_gte?( ubuntu_version, [18,4] ) && '10' ) || ( version_gte?( ubuntu_version, [15,4] ) && '8' ) || ( version_gte?( ubuntu_version, [14,4] ) && '7' ) || ( version_gte?( ubuntu_version, [12,4] ) && '6' ) end