Sha256: c97dff62adffb51086041113beb7073bcbb6898ccac5458153de406134fbb59b

Contents?: true

Size: 566 Bytes

Versions: 127

Compression:

Stored size: 566 Bytes

Contents

class Specinfra::Helper::DetectOs::Solaris < Specinfra::Helper::DetectOs
  def self.detect
    if ( uname = run_command('uname -sr').stdout) && uname =~ /SunOS/i
      if uname =~ /5.10/
        { :family => 'solaris', :release => 10 }
      elsif run_command('grep -q "Oracle Solaris 11" /etc/release').success?
        { :family => 'solaris', :release => 11 }
      elsif run_command('grep -q SmartOS /etc/release').success?
        { :family => 'smartos', :release => nil }
      else
        { :family => 'solaris', :release => nil }
      end
    end
  end
end

Version data entries

127 entries across 127 versions & 1 rubygems

Version Path
specinfra-2.0.0 lib/specinfra/helper/detect_os/solaris.rb
specinfra-2.0.0.beta52 lib/specinfra/helper/detect_os/solaris.rb
specinfra-2.0.0.beta51 lib/specinfra/helper/detect_os/solaris.rb
specinfra-2.0.0.beta50 lib/specinfra/helper/detect_os/solaris.rb
specinfra-2.0.0.beta49 lib/specinfra/helper/detect_os/solaris.rb
specinfra-2.0.0.beta48 lib/specinfra/helper/detect_os/solaris.rb
specinfra-2.0.0.beta47 lib/specinfra/helper/detect_os/solaris.rb
specinfra-2.0.0.beta46 lib/specinfra/helper/detect_os/solaris.rb
specinfra-2.0.0.beta45 lib/specinfra/helper/detect_os/solaris.rb
specinfra-2.0.0.beta44 lib/specinfra/helper/detect_os/solaris.rb
specinfra-2.0.0.beta43 lib/specinfra/helper/detect_os/solaris.rb
specinfra-2.0.0.beta42 lib/specinfra/helper/detect_os/solaris.rb
specinfra-2.0.0.beta41 lib/specinfra/helper/detect_os/solaris.rb
specinfra-2.0.0.beta40 lib/specinfra/helper/detect_os/solaris.rb
specinfra-2.0.0.beta39 lib/specinfra/helper/detect_os/solaris.rb
specinfra-2.0.0.beta38 lib/specinfra/helper/detect_os/solaris.rb
specinfra-2.0.0.beta37 lib/specinfra/helper/detect_os/solaris.rb
specinfra-2.0.0.beta36 lib/specinfra/helper/detect_os/solaris.rb
specinfra-2.0.0.beta35 lib/specinfra/helper/detect_os/solaris.rb
specinfra-2.0.0.beta34 lib/specinfra/helper/detect_os/solaris.rb