Orchard.CpuInfo (orchard v0.1.7)

View Source

CPU and OS detection utilities for determining system architecture.

Summary

Functions

Returns the architecture string for AXe binary downloads.

Returns the CPU architecture type.

Returns the operating system type.

Checks if the current platform is supported for Apple device management.

Returns a descriptive error message for unsupported platforms.

Functions

axe_arch()

@spec axe_arch() :: String.t() | nil

Returns the architecture string for AXe binary downloads.

cpu_type()

@spec cpu_type() :: String.t()

Returns the CPU architecture type.

os_type()

@spec os_type() :: :macos | :linux | :windows | :freebsd | :other

Returns the operating system type.

supported_platform?()

@spec supported_platform?() :: boolean()

Checks if the current platform is supported for Apple device management.

unsupported_platform_error()

@spec unsupported_platform_error() :: String.t()

Returns a descriptive error message for unsupported platforms.