Sha256: dded09c31084b743fd596133eb68b7dee629ba3de691ef5954f186ff0f087ff1

Contents?: true

Size: 322 Bytes

Versions: 46

Compression:

Stored size: 322 Bytes

Contents

class Specinfra::Helper::DetectOs::Freebsd < Specinfra::Helper::DetectOs
  def 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

46 entries across 46 versions & 1 rubygems

Version Path
specinfra-2.33.0 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.32.0 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.31.1 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.31.0 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.30.4 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.30.3 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.30.2 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.30.1 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.30.0 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.29.0 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.28.4 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.28.3 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.28.2 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.28.1 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.28.0 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.27.1 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.27.0 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.26.1 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.26.0 lib/specinfra/helper/detect_os/freebsd.rb
specinfra-2.25.1 lib/specinfra/helper/detect_os/freebsd.rb