Sha256: 4e9f107eacd748944fb2e0d123582ba6b547e776da6466b015353e2cb9099610
Contents?: true
Size: 411 Bytes
Versions: 6
Compression:
Stored size: 411 Bytes
Contents
module PDK module Analytics module Util def self.fetch_os_async require 'concurrent/configuration' require 'concurrent/future' Concurrent::Future.execute(executor: :io) do require 'facter' os = Facter.value('os') os.nil? ? 'unknown' : "#{os['name']} #{os.fetch('release', {}).fetch('major', '')}".strip end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems