Xamal.Commands.Lock (xamal v0.3.0)

Copy Markdown View Source

Deploy lock commands using mkdir-based locking (identical to Kamal).

Summary

Functions

Acquire the deploy lock. mkdir is atomic - fails if dir exists.

Ensure the locks parent directory exists.

Release the deploy lock.

Check lock status.

Functions

acquire(config, message, version, locked_by, locked_at)

Acquire the deploy lock. mkdir is atomic - fails if dir exists.

ensure_locks_directory(config)

Ensure the locks parent directory exists.

release(config)

Release the deploy lock.

status(config)

Check lock status.