module

Bakelite

Inherits Bakelite::DSL < Bakelite::FS

Constants

COMMIT_VERSION = 0
MAJOR_VERSION = 0
MINOR_VERSION = 1
VERSION = "0.1.0"

Class methods

[]?(path : String) : Bakelite::Item | Nil
Source
carbon_version
Source
each_file
Source
extract_all(destination_dir : Path | String, overwrite : Bool = true) : Int32
Source
extract_folder(prefix : String, destination_dir : Path | String, overwrite : Bool = true) : Int32
Source
extract_volume(name : Symbol | String, dest : Path | String, overwrite : Bool = true) : Int32

Extracts an entire volume by name to destination directory.

Source
extract_volume_folder(name : Symbol | String, prefix : String, dest : Path | String, overwrite : Bool = true) : Int32

Extracts a specific subfolder from a volume to destination directory.

Source
files
Source
fs

Top-level global filesystem registry

Source
get(path : String) : Bakelite::Item

Direct lookups & routing

Source
get?(path : String) : Bakelite::Item | Nil
Source
glob(pattern : String, &block : Bakelite::Item -> ) : Nil
Source
glob(pattern : String) : Array(Bakelite::Item)
Source
has_file?(path : String) : Bool
Source
mount_file(archive_path : String | Path, volume_name : Symbol | String | Nil = nil, mount : String | Nil = nil, priority : Int32 = 0) : Bakelite::Volume | Nil
Source
mount_self!(priority : Int32 = 0) : Bool
Source
open(path : String) : IO
Source
open(path : String, &block : IO -> T) : T forall T
Source
pack(target : Path | String, source_dir : Path | String, volume : Symbol | String = :root, mount_point : String = "", priority : Int32 = 0, chunk_size : UInt32 = 65536_u32, compression : CompressionType = CompressionType::Deflate, exclude : Array(String) = [] of String, append : Bool = true) : Int64

Programmatic container packing API: packs a directory into a target container or appends to an executable.

Source
pack(target : Path | String, volumes : Array(Volume), append : Bool = true) : Int64

Programmatic container packing API: packs an array of preconfigured volumes into a target container.

Source
unmount(volume_name : Symbol | String) : Bool
Source
version
Source
volume(name : Symbol | String, mount : String = "", priority : Int32 = 0, &block : Bakelite::Volume -> ) : Bakelite::Volume
Source
volume?(name : Symbol | String) : Bakelite::Volume | Nil
Source
volumes
Source

Nested types