Sha256: 958da11017f5ba16513368e0a7a4f0641314dedd9ab251e354c9f1f215247c0e

Contents?: true

Size: 308 Bytes

Versions: 9

Compression:

Stored size: 308 Bytes

Contents

class Specinfra::Helper::DetectOs::Esxi < Specinfra::Helper::DetectOs
  def self.detect
    if run_command('vmware -v').success?
      line = run_command('vmware -v').stdout
      if line =~ /VMware ESXi (.*)/
        release = $1
      end
      { :family => 'esxi', :release => release }
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
specinfra-2.19.2 lib/specinfra/helper/detect_os/esxi.rb
specinfra-2.19.1 lib/specinfra/helper/detect_os/esxi.rb
specinfra-2.19.0 lib/specinfra/helper/detect_os/esxi.rb
specinfra-2.18.3 lib/specinfra/helper/detect_os/esxi.rb
specinfra-2.18.2 lib/specinfra/helper/detect_os/esxi.rb
specinfra-2.18.1 lib/specinfra/helper/detect_os/esxi.rb
specinfra-2.18.0 lib/specinfra/helper/detect_os/esxi.rb
specinfra-2.17.1 lib/specinfra/helper/detect_os/esxi.rb
specinfra-2.17.0 lib/specinfra/helper/detect_os/esxi.rb