Class: Motoko::Resolvers::Os

Inherits:
BaseResolver show all
Defined in:
lib/motoko/resolvers/os.rb

Instance Attribute Summary

Attributes inherited from BaseResolver

#formatter, #human_name, #name

Instance Method Summary collapse

Methods inherited from BaseResolver

#align, #initialize, #value

Methods included from Utils::SnakeToCamel

#snake_to_camel_case

Constructor Details

This class inherits a constructor from Motoko::Resolvers::BaseResolver

Instance Method Details

#resolve_for(node) ⇒ Object



6
7
8
# File 'lib/motoko/resolvers/os.rb', line 6

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