module

Sheety::DataDir

Manages the Sheety data directory

Class methods

ensure

Ensure the data directory exists

Source
ensure_dependencies

Ensure dependencies are installed (runs shards install if lib/ doesn't exist)

Source
ensure_shard_yml

Ensure shard.yml exists in data directory

Source
extract_embedded_files

Extract embedded source files to data directory (only works in sheety CLI)

Source
path

Get the Sheety data directory path

Source
sheety_version

A short, stable string identifying the current sheety binary (its mtime as unix seconds). Used to fold the sheety version into the generated- binary cache key, so rebuilding sheety (bug fixes, generator changes) invalidates stale cached binaries rather than silently reusing them. Returns "unknown" when sheety isn't on PATH (e.g. a generated or static binary running on a host without sheety installed) so callers hashing this never raise.

Source