module DPPM::Prefix::Base
Direct including types
Defined in:
prefix/base.crInstance Method Summary
- #conf_path
-
#config! : ::Config::Types
Raises if no configuration is available.
-
#config? : ::Config::Types | Nil?
Returns the main configuration.
-
#config_file! : Path
Raises if the configuration file doesn't exist.
-
#config_file? : Path | Nil?
Raises if the configuration file if it exists.
-
#database? : Database::MySQL | Nil?
Returns a database, if any.
-
#deps_with_expr
Hash
of each source with its version expression to match. - #each_config_key(&block : String -> )
-
#get_config(key : String)
Gets the config key.
- #get_config(key : String, &)
-
#get_config?(key : String)
Gets the config key, if any.
- #libs_path
-
#name : String
Name of the package.
-
#path : Path
Root path of the package.
- #pkg_file
-
#port_checker(host : String) : PortChecker
Returns a port checker.
-
#prefix : Prefix
Prefix used.
-
#resolve_deps(dependencies : Hash(String, Array(SemanticVersion)) = Hash(String, Array(SemanticVersion)).new) : Hash(String, Array(SemanticVersion))
Resolves semver expressions recursively.
Instance Method Detail
def get_config(key : String)
#
Gets the config key. Raises a ConfigKeyError
if the key is not found.
def resolve_deps(dependencies : Hash(String, Array(SemanticVersion)) = Hash(String, Array(SemanticVersion)).new) : Hash(String, Array(SemanticVersion))
#
Resolves semver expressions recursively.