Sha256: eeb5bd9b1aced78ec921c2690fe6621506c4d9a12ffa1dc1230deefc5d2fb04c
Contents?: true
Size: 324 Bytes
Versions: 4
Compression:
Stored size: 324 Bytes
Contents
# frozen_string_literal: true module Motoko module Resolvers class Cpu < BaseResolver def resolve_for(node) format('%<ncpu>2d × %<model>s', ncpu: node.fact('processors.count'), model: node.fact('processors.models').first.gsub(/\((R|TM)\)|Processor/, '').gsub(/ {2,}/, ' ')) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
motoko-1.2.1 | lib/motoko/resolvers/cpu.rb |
motoko-1.2.0 | lib/motoko/resolvers/cpu.rb |
motoko-1.1.0 | lib/motoko/resolvers/cpu.rb |
motoko-1.0.0 | lib/motoko/resolvers/cpu.rb |