Sha256: f062d5491c16ed81e21b9d5b4ca17d03bf70edeed4cbdbe5da74e1ca89e3b412

Contents?: true

Size: 242 Bytes

Versions: 5

Compression:

Stored size: 242 Bytes

Contents

module Serverspec
  module Helper
    module DetectOS
      def commands
        os = backend(Serverspec::Commands::Base).check_os
        self.class.const_get('Serverspec').const_get('Commands').const_get(os).new
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-0.6.1 lib/serverspec/helper/detect_os.rb
serverspec-0.6.0 lib/serverspec/helper/detect_os.rb
serverspec-0.5.8 lib/serverspec/helper/detect_os.rb
serverspec-0.5.7 lib/serverspec/helper/detect_os.rb
serverspec-0.5.6 lib/serverspec/helper/detect_os.rb