module CompileHelper

Defined in:

bakelite/compile_helper.cr

Class Method Summary

Class Method Detail

def self.comp_enum_str(comp_sym : String) : String #

def self.compress_chunk(chunk_raw : Bytes, comp_sym : String) : Bytes #

def self.emit_file(io : IO, full_disk_path : String, v_path : String, vol_name : String, mode : String, chunk_size : UInt32, comp_sym : String, transform_spec : String | Nil, auto_threshold : Int64 | Nil = nil) #

Emits Crystal code to construct and add an item to the specified volume


def self.find_files(base_dir : String, patterns : Array(String), excludes : Array(String)) : Array(String) #

Scans base_dir for files matching patterns and not matching excludes


def self.process_folder_batch(mode : String, dir : String, prefix : String, volume_name : String, chunk_size : UInt32, comp_sym : String, transform_spec : String | Nil, exclude_csv : String, threshold : Int64 | Nil = nil) #

def self.process_manifest(manifest_path : String, base_dir : String = ".") #