Sha256: 7a6c277957983e35c402ad2b4bab64d645373f685d9ae6543c5758c7626fbe49

Contents?: true

Size: 474 Bytes

Versions: 3

Compression:

Stored size: 474 Bytes

Contents

# encoding: utf-8
module CSD
  module Extensions
    module Gem
      module Platform
  
        def humanize
          version_string = version ? ", version #{version}" : ''
          "#{os} (CPU: #{cpu}#{version_string})"
        end
        
        def kernel_version
          Cmd.run('uname -v', :silent => true).chop if os == 'linux'
        end
  
      end
    end
  end
end

module Gem
  class Platform #:nodoc:
    include CSD::Extensions::Gem::Platform
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
csd-0.1.5 lib/csd/extensions/gem/platform.rb
csd-0.1.4 lib/csd/extensions/gem/platform.rb
csd-0.1.3 lib/csd/extensions/gem/platform.rb