Sha256: 168842be758907cf1ba9e1bef49123f67a0207ed15fa7d6ba5346c8e59143693
Contents?: true
Size: 463 Bytes
Versions: 123
Compression:
Stored size: 463 Bytes
Contents
class Specinfra::Helper::DetectOs::Suse < Specinfra::Helper::DetectOs def detect if run_command('ls /etc/SuSE-release').success? line = run_command('cat /etc/SuSE-release').stdout if line =~ /SUSE Linux Enterprise Server (\d+)/ release = $1 family = 'suse' elsif line =~ /openSUSE (\d+\.\d+|\d+)/ release = $1 family = 'opensuse' end { :family => family, :release => release } end end end
Version data entries
123 entries across 123 versions & 3 rubygems