Docs exports: JSON llms.txt llms-full.txt Agent Files

class Shards::PostinstallInfo

Overview

Tracks postinstall script execution state across installs.

Persisted at lib/.shards.postinstall, this tracker stores a hash of each shard's postinstall command and whether it has been executed.

This enables version-aware postinstall behavior:

Defined in:

postinstall_info.cr

Constant Summary

CURRENT_VERSION = "1.0"

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(path : String) #

[View source]

Class Method Detail

def self.hash_script(command : String) : String #

Computes a SHA-256 hash of a postinstall command string.


[View source]

Instance Method Detail

def load #

Loads tracker state from the YAML file at #path.


[View source]
def path : String #

Absolute path to the .shards.postinstall file.


[View source]
def save #

Persists the current tracker state to the YAML file at #path.


[View source]
def shards : Hash(String, Entry) #

Map of shard name to its postinstall entry.


[View source]