Sha256: 50be0b3439f330b0d3b4cb3ea356e7cde4cc5ef49a9f1ac737da90311ea402d7

Contents?: true

Size: 230 Bytes

Versions: 1

Compression:

Stored size: 230 Bytes

Contents

module Serverspec
  module Helper
    module DetectOS
      def commands
        os = RSpec.configuration.os || 'Base'
        self.class.const_get('Serverspec').const_get('Commands').const_get(os).new
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
serverspec-0.5.5 lib/serverspec/helper/detect_os.rb