Search documentation of phoenix_kit

# PhoenixKit.System.Dependencies (phoenix_kit v1.6.19)

View Source

System dependency checker for PhoenixKit.

Probes for required system tools like ImageMagick and FFmpeg. Results are cached to avoid repeated system calls.

# Summary

## Functions

check_ffmpeg()

Check if FFmpeg is installed and available.

check_ffmpeg_cached()

Check if FFmpeg is installed (cached version).

check_imagemagick()

Check if ImageMagick is installed and available.

check_imagemagick_cached()

Check if ImageMagick is installed (cached version).

clear_cache()

Clear the dependency check cache.

# Functions

# check_ffmpeg()

Check if FFmpeg is installed and available.

Returns:

- `{:ok, version}` - FFmpeg is installed with version string
- `{:error, :not_installed}` - FFmpeg not found
- `{:error, reason}` - Other error occurred

# check_ffmpeg_cached()

Check if FFmpeg is installed (cached version).

Returns the cached result if available, otherwise probes system.

# check_imagemagick()

Check if ImageMagick is installed and available.

Returns:

- `{:ok, version}` - ImageMagick is installed with version string
- `{:error, :not_installed}` - ImageMagick not found
- `{:error, reason}` - Other error occurred

# check_imagemagick_cached()

Check if ImageMagick is installed (cached version).

Returns the cached result if available, otherwise probes system.

# clear_cache()

Clear the dependency check cache.

Useful for testing or when you know system dependencies have changed.