Sha256: a3ab654be55edb5cd2eb439074b59a73105d5f7032a0f7a366372ca595eda8d9

Contents?: true

Size: 958 Bytes

Versions: 7

Compression:

Stored size: 958 Bytes

Contents

module Specinfra::Helper
  class DetectOs
    def self.detect
      self.new(Specinfra.backend).detect
    end

    def initialize(backend)
      @backend = backend
    end

    def run_command(cmd)
      @backend.run_command(cmd)
    end

    def detect
      raise NotImplementedError
    end
  end
end

require 'specinfra/helper/detect_os/aix'
require 'specinfra/helper/detect_os/alpine'
require 'specinfra/helper/detect_os/arch'
require 'specinfra/helper/detect_os/coreos'
require 'specinfra/helper/detect_os/darwin'
require 'specinfra/helper/detect_os/debian'
require 'specinfra/helper/detect_os/esxi'
require 'specinfra/helper/detect_os/freebsd'
require 'specinfra/helper/detect_os/gentoo'
require 'specinfra/helper/detect_os/nixos'
require 'specinfra/helper/detect_os/openbsd'
require 'specinfra/helper/detect_os/plamo'
require 'specinfra/helper/detect_os/redhat'
require 'specinfra/helper/detect_os/solaris'
require 'specinfra/helper/detect_os/suse'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
specinfra-2.25.1 lib/specinfra/helper/detect_os.rb
specinfra-2.25.0 lib/specinfra/helper/detect_os.rb
specinfra-2.24.2 lib/specinfra/helper/detect_os.rb
specinfra-2.24.1 lib/specinfra/helper/detect_os.rb
specinfra-2.24.0 lib/specinfra/helper/detect_os.rb
specinfra-2.23.0 lib/specinfra/helper/detect_os.rb
specinfra-2.22.0 lib/specinfra/helper/detect_os.rb