class DPPM::Prefix::Pkg

Included Modules

Defined in:

prefix/pkg.cr

Instance Method Summary

Instance methods inherited from module DPPM::Prefix::ProgramData

all_bin_paths all_bin_paths, app_bin_path app_bin_path, app_path app_path, available! available!, data_path data_path, exists? exists?, install_deps(deps : Set(Pkg), shared : Bool = true, &block) install_deps, libs libs, site_path site_path

Instance methods inherited from module DPPM::Prefix::Base

conf_path conf_path, config! : ::Config::Types config!, config? config?, config_file! : Path config_file!, config_file? config_file?, database? database?, deps_with_expr deps_with_expr, each_config_key(&block : String -> ) each_config_key, get_config(key : String)
get_config(key : String, &block)
get_config
, get_config?(key : String) get_config?, libs_path libs_path, name : String name, path : Path path, pkg_file pkg_file, port_checker(host : String) : PortChecker port_checker, prefix : Prefix prefix, resolve_deps(dependencies : Hash(String, Array(SemanticVersion)) = Hash(String, Array(SemanticVersion)).new) : Hash(String, Array(SemanticVersion)) resolve_deps

Instance Method Detail

def bin_path : Path #

Path of the application binary.


[View source]
def build #

Used to install dependencies, avoiding recursive block expansions


[View source]
def build(deps : Set(Pkg) = Set(Pkg).new, confirmation : Bool = true, &block) : Pkg #

Build the package. Yields a block before writing on disk. When confirmation is set, the block must be true to continue.


[View source]
def copy_src_to_path #

Copy the source to this package directory path


[View source]
def create_global_bin_symlinks(force : Bool = false) #

Create symlinks to a globally reachable path


[View source]
def delete(confirmation : Bool = true, &block) : Pkg? #

[View source]
def delete_global_bin_symlinks #

[View source]
def each_binary_with_path(&block : Path, String -> ) #

[View source]
def each_config_key(&block : String -> ) #

[View source]
def get_config(key : String, &block) #

Gets the config key. Yields the block if not found.


[View source]
def new_app(app_name : String? = nil) : App #

[View source]
def package : String #

Package name.


[View source]
def semantic_version #

Semantic version representation.


[View source]
def src : Src #

[View source]
def version : String #

Version of the package.


[View source]