Sha256: 7ffc165782e78ace2896e738256319edbad3053bd78b2745f314d9a23456f861

Contents?: true

Size: 1.19 KB

Versions: 12

Compression:

Stored size: 1.19 KB

Contents

module Specinfra
  module 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
end

require 'specinfra/helper/detect_os/aix'
require 'specinfra/helper/detect_os/alpine'
require 'specinfra/helper/detect_os/arch'
require 'specinfra/helper/detect_os/clearlinux'
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/eos'
require 'specinfra/helper/detect_os/freebsd'
require 'specinfra/helper/detect_os/gentoo'
require 'specinfra/helper/detect_os/guix'
require 'specinfra/helper/detect_os/nixos'
require 'specinfra/helper/detect_os/openbsd'
require 'specinfra/helper/detect_os/photon'
require 'specinfra/helper/detect_os/plamo'
require 'specinfra/helper/detect_os/poky'
require 'specinfra/helper/detect_os/redhat'
require 'specinfra/helper/detect_os/solaris'
require 'specinfra/helper/detect_os/suse'

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
specinfra-2.90.1 lib/specinfra/helper/detect_os.rb
specinfra-2.90.0 lib/specinfra/helper/detect_os.rb
specinfra-2.89.0 lib/specinfra/helper/detect_os.rb
specinfra-2.88.2 lib/specinfra/helper/detect_os.rb
specinfra-2.88.1 lib/specinfra/helper/detect_os.rb
specinfra-2.88.0 lib/specinfra/helper/detect_os.rb
specinfra-2.87.2 lib/specinfra/helper/detect_os.rb
specinfra-2.87.1 lib/specinfra/helper/detect_os.rb
specinfra-2.87.0 lib/specinfra/helper/detect_os.rb
specinfra-2.86.0 lib/specinfra/helper/detect_os.rb
specinfra-2.85.1 lib/specinfra/helper/detect_os.rb
specinfra-2.85.0 lib/specinfra/helper/detect_os.rb