Class: Specinfra::Helper::DetectOs
- Inherits:
-
Object
- Object
- Specinfra::Helper::DetectOs
- Defined in:
- lib/specinfra/helper/detect_os.rb
Direct Known Subclasses
Aix, Alpine, Arch, Coreos, Darwin, Debian, Devuan, Eos, Esxi, Freebsd, Gentoo, Nixos, Openbsd, Photon, Plamo, Poky, Redhat, Solaris, Suse
Defined Under Namespace
Classes: Aix, Alpine, Arch, Coreos, Darwin, Debian, Devuan, Eos, Esxi, Freebsd, Gentoo, Nixos, Openbsd, Photon, Plamo, Poky, Redhat, Solaris, Suse
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 |