class DPPM::Prefix::Pkg
- DPPM::Prefix::Pkg
- Reference
- Object
Included Modules
Defined in:
prefix/pkg.crInstance Method Summary
-
#bin_path : Path
Path of the application binary.
-
#build
Used to install dependencies, avoiding recursive block expansions
-
#build(deps : Set(Pkg) = Set(Pkg).new, confirmation : Bool = true, &block) : Pkg
Build the package.
-
#copy_src_to_path
Copy the source to this package directory path
-
#create_global_bin_symlinks(force : Bool = false)
Create symlinks to a globally reachable path
- #delete(confirmation : Bool = true, &) : Pkg?
- #delete_global_bin_symlinks
- #each_binary_with_path(&block : Path, String -> )
- #each_config_key(&block : String -> )
-
#get_config(key : String, &)
Gets the config key.
- #new_app(app_name : String? = nil) : App
-
#package : String
Package name.
-
#semantic_version
Semantic version representation.
- #src : Src
-
#version : String
Version of the package.
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, &)
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::Types | Nil?
config?,
config_file! : Path
config_file!,
config_file? : Path | Nil?
config_file?,
database? : Database::MySQL | Nil?
database?,
deps_with_expr
deps_with_expr,
each_config_key(&block : String -> )
each_config_key,
get_config(key : String)get_config(key : String, &) 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
Build the package. Yields a block before writing on disk. When confirmation is set, the block must be true to continue.