Sha256: 83b418b2fd7421f19a287c4deb4dfc30ad8aac229a5907bf0b2844108cadb0ad

Contents?: true

Size: 1.02 KB

Versions: 69

Compression:

Stored size: 1.02 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/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/poky'
require 'specinfra/helper/detect_os/redhat'
require 'specinfra/helper/detect_os/solaris'
require 'specinfra/helper/detect_os/suse'

Version data entries

69 entries across 69 versions & 2 rubygems

Version Path
specinfra-rb19-2.44.7 lib/specinfra/helper/detect_os.rb
specinfra-2.60.4 lib/specinfra/helper/detect_os.rb
specinfra-2.60.3 lib/specinfra/helper/detect_os.rb
specinfra-2.60.2 lib/specinfra/helper/detect_os.rb
specinfra-2.60.1 lib/specinfra/helper/detect_os.rb
specinfra-2.60.0 lib/specinfra/helper/detect_os.rb
specinfra-2.59.6 lib/specinfra/helper/detect_os.rb
specinfra-2.59.5 lib/specinfra/helper/detect_os.rb
specinfra-2.59.4 lib/specinfra/helper/detect_os.rb
specinfra-2.59.3 lib/specinfra/helper/detect_os.rb
specinfra-2.59.2 lib/specinfra/helper/detect_os.rb
specinfra-2.59.1 lib/specinfra/helper/detect_os.rb
specinfra-2.59.0 lib/specinfra/helper/detect_os.rb
specinfra-2.58.0 lib/specinfra/helper/detect_os.rb
specinfra-2.57.5 lib/specinfra/helper/detect_os.rb
specinfra-2.57.4 lib/specinfra/helper/detect_os.rb
specinfra-2.57.3 lib/specinfra/helper/detect_os.rb
specinfra-2.57.2 lib/specinfra/helper/detect_os.rb
specinfra-2.57.1 lib/specinfra/helper/detect_os.rb
specinfra-2.57.0 lib/specinfra/helper/detect_os.rb