Sha256: 84fbd290b1f4b4d0663dd884ff9df7cfb08da5829f3c6d7a10ae5788994bf885

Contents?: true

Size: 292 Bytes

Versions: 4

Compression:

Stored size: 292 Bytes

Contents

# frozen_string_literal: true

module Motoko
  module Resolvers
    class Os < BaseResolver
      def resolve_for(node)
        node.fact('os.distro.description') || format('%<name>s %<release>s', name: node.fact('os.name'), release: node.fact('os.release.full'))
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
motoko-1.2.1 lib/motoko/resolvers/os.rb
motoko-1.2.0 lib/motoko/resolvers/os.rb
motoko-1.1.0 lib/motoko/resolvers/os.rb
motoko-1.0.0 lib/motoko/resolvers/os.rb