module MStrap::Linux
Extended Modules
Defined in:
mstrap/platform/linux.crmstrap/platform/linux/archlinux.cr
mstrap/platform/linux/debian.cr
mstrap/platform/linux/fedora.cr
mstrap/platform/linux/rhel.cr
Constant Summary
-
ARCH_DISTROS =
[DISTRO_ARCHLINUX, DISTRO_MANJARO]
-
DEBIAN_DISTROS =
[DISTRO_DEBIAN, DISTRO_UBUNTU]
-
DISTRO_ARCHLINUX =
"arch"
-
DISTRO_CENTOS =
"centos"
-
DISTRO_DEBIAN =
"debian"
-
DISTRO_FAMILY_ARCH =
"arch"
-
DISTRO_FAMILY_DEBIAN =
"debian"
-
DISTRO_FAMILY_RHEL =
"rhel"
-
DISTRO_FEDORA =
"fedora"
-
DISTRO_MANJARO =
"manjarolinux"
-
DISTRO_REDHAT =
"redhat"
-
DISTRO_UBUNTU =
"ubuntu"
-
DISTRO_UNKNOWN =
"unknown"
-
RHEL_DISTROS =
[DISTRO_CENTOS, DISTRO_FEDORA, DISTRO_REDHAT]
Instance Method Summary
-
#arch_distro?
Returns true on ArchLinux-based distros (e.g.
-
#archlinux?
Returns true if on ArchLinux
-
#centos?
Returns true if on CentOS
-
#debian?
Returns true if on Debian
-
#debian_distro?
Returns true of on a distro in the Debian family (e.g.
-
#distro
Returns distro name
-
#distro_codename
Returns distro version codename
-
#distro_family
Returns distro family
-
#distro_version
Returns distro version
-
#fedora?
Returns true on Fedora
-
#has_git?
Indicates whether the host platform has Git installed
-
#rhel?
Returns true on RHEL (RedHat Enterprise Linux)
-
#rhel_distro?
Returns true on a RHEL-based distro (e.g.
-
#ubuntu?
Returns true on Ubuntu
-
#unknown_distro?
Returns true if distro is not known to mstrap