module MStrap::Linux

Extended Modules

Defined in:

mstrap/platform/linux.cr
mstrap/platform/linux/debian.cr
mstrap/platform/linux/fedora.cr
mstrap/platform/linux/rhel.cr

Constant Summary

DEBIAN_DISTROS = [DISTRO_DEBIAN, DISTRO_UBUNTU]
DISTRO_CENTOS = "centos"
DISTRO_DEBIAN = "debian"
DISTRO_FAMILY_DEBIAN = "debian"
DISTRO_FAMILY_RHEL = "rhel"
DISTRO_FEDORA = "fedora"
DISTRO_REDHAT = "redhat"
DISTRO_UBUNTU = "ubuntu"
DISTRO_UNKNOWN = "unknown"
RHEL_DISTROS = [DISTRO_CENTOS, DISTRO_FEDORA, DISTRO_REDHAT]

Instance Method Summary

Instance Method Detail

def centos? #

Returns true if on CentOS


[View source]
def debian? #

Returns true if on Debian


[View source]
def debian_distro? #

Returns true of on a distro in the Debian family (e.g. Debian, Ubuntu)


[View source]
def distro #

Returns distro name


[View source]
def distro_codename #

Returns distro version codename


[View source]
def distro_family #

Returns distro family


[View source]
def distro_version #

Returns distro version


[View source]
def fedora? #

Returns true on Fedora


[View source]
def rhel? #

Returns true on RHEL (RedHat Enterprise Linux)


[View source]
def rhel_distro? #

Returns true on a RHEL-based distro (e.g. RHEL, CentOS, Fedora)


[View source]
def ubuntu? #

Returns true on Ubuntu


[View source]
def unknown_distro? #

Returns true if distro is not known to mstrap


[View source]