Sha256: 5afd342987a5adb89a34761dea1b83f1ec3bab32b7f0c1276e20f7893531a733

Contents?: true

Size: 327 Bytes

Versions: 127

Compression:

Stored size: 327 Bytes

Contents

class Specinfra::Helper::DetectOs::Freebsd < Specinfra::Helper::DetectOs
  def self.detect
    if ( uname = run_command('uname -sr').stdout ) && uname =~ /FreeBSD/i
      if uname =~ /10./
        { :family => 'freebsd', :release => 10 }
      else
        { :family => 'freebsd', :release => nil }
      end
    end
  end
end

Version data entries

127 entries across 127 versions & 1 rubygems

Version Path
specinfra-2.21.1 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.21.0 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.20.2 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.20.1 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.20.0 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.19.6 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.19.5 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.19.4 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.19.3 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.19.2 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.19.1 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.19.0 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.18.3 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.18.2 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.18.1 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.18.0 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.17.1 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.17.0 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.16.0 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.15.2 lib/specinfra/helper/detect_os/freebsd.rb