Class: Specinfra::Helper::DetectOs
- Inherits:
-
Object
- Object
- Specinfra::Helper::DetectOs
- Defined in:
- lib/specinfra/helper/detect_os.rb
Direct Known Subclasses
Aix, Alpine, Arch, Clearlinux, Coreos, Darwin, Debian, Devuan, Eos, Esxi, Freebsd, Gentoo, Guix, Nixos, Openbsd, Photon, Plamo, Poky, Redhat, Solaris, Suse, Voidlinux
Defined Under Namespace
Classes: Aix, Alpine, Arch, Clearlinux, Coreos, Darwin, Debian, Devuan, Eos, Esxi, Freebsd, Gentoo, Guix, Nixos, Openbsd, Photon, Plamo, Poky, Redhat, Solaris, Suse, Voidlinux
Class Method Summary collapse
Instance Method Summary collapse
- #detect ⇒ Object
-
#initialize(backend) ⇒ DetectOs
constructor
A new instance of DetectOs.
- #run_command(cmd) ⇒ Object
Constructor Details
Class Method Details
Instance Method Details
#detect ⇒ Object
16 17 18 |
# File 'lib/specinfra/helper/detect_os.rb', line 16 def detect raise NotImplementedError end |
#run_command(cmd) ⇒ Object
12 13 14 |
# File 'lib/specinfra/helper/detect_os.rb', line 12 def run_command(cmd) @backend.run_command(cmd) end |