Sha256: 8fa635837dc780d775adc53fcf9941938a25003ae564ee9624968e2851777f64

Contents?: true

Size: 258 Bytes

Versions: 11

Compression:

Stored size: 258 Bytes

Contents

class Specinfra::Helper::DetectOs::Darwin < Specinfra::Helper::DetectOs
  def detect
    if run_command('uname -s').stdout =~ /Darwin/i
      release = run_command('uname -r').stdout.strip
      { :family => 'darwin', :release => release }
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
specinfra-2.36.17 lib/specinfra/helper/detect_os/darwin.rb
specinfra-2.36.16 lib/specinfra/helper/detect_os/darwin.rb
specinfra-2.36.15 lib/specinfra/helper/detect_os/darwin.rb
specinfra-2.36.14 lib/specinfra/helper/detect_os/darwin.rb
specinfra-2.36.13 lib/specinfra/helper/detect_os/darwin.rb
specinfra-2.36.12 lib/specinfra/helper/detect_os/darwin.rb
specinfra-2.36.11 lib/specinfra/helper/detect_os/darwin.rb
specinfra-2.36.10 lib/specinfra/helper/detect_os/darwin.rb
specinfra-2.36.9 lib/specinfra/helper/detect_os/darwin.rb
specinfra-2.36.8 lib/specinfra/helper/detect_os/darwin.rb
specinfra-2.36.7 lib/specinfra/helper/detect_os/darwin.rb