module DPPM::Prefix::Base

Direct including types

Defined in:

prefix/base.cr

Instance Method Summary

Instance Method Detail

def conf_path #

[View source]
def config! : ::Config::Types #

Raises if no configuration is available.


[View source]
def config? #

Returns the main configuration.


[View source]
def config_file! : Path #

Raises if the configuration file doesn't exist.


[View source]
def config_file? #

Raises if the configuration file if it exists.


[View source]
def database? #

Returns a database, if any.


[View source]
def deps_with_expr #

Hash of each source with its version expression to match.


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

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

Gets the config key. Raises a ConfigKeyError if the key is not found.


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

[View source]
def get_config?(key : String) #

Gets the config key, if any.


[View source]
def libs_path #

[View source]
def name : String #

Name of the package.


[View source]
def path : Path #

Root path of the package.


[View source]
def pkg_file #

[View source]
def port_checker(host : String) : PortChecker #

Returns a port checker.


[View source]
def prefix : Prefix #

Prefix used.


[View source]
def resolve_deps(dependencies : Hash(String, Array(SemanticVersion)) = Hash(String, Array(SemanticVersion)).new) : Hash(String, Array(SemanticVersion)) #

Resolves semver expressions recursively.


[View source]