rbc.utils#

Description

Collection of helper functions

Functions

check_returns_none(func)

Return True if function return value is always None.

get_datamodel()

Return the data model of a host system.

get_function_source(func)

Get function source code with intent fixes.

get_local_ip()

Return localhost IP.

get_version(package)

Return a package version as a 3-tuple of integers.

is_localhost(ip)

Check if ip is the IP of a localhost.

parse_version(version)

Return parsed version tuple from version string.

runcommand(*cmd)

Run a command with arguments and return stdout messages.

triple_matches(triple, other)

Check if target triples match.

triple_split(triple)

Split target triple into parts.

version_date(version)

Return date from version dev part as an integer containing digits yyyymmdd.

version_hash(version)

Return hash from version dev part as string.