struct DPPM::Prefix
- DPPM::Prefix
- Struct
- Value
- Object
Defined in:
prefix.crConstructors
Class Method Summary
-
.default
Default prefix for a DPPM installation.
-
.default_dppm_config
Default DPPM configuration.
-
.default_group : String
Default group namespace where installing applications.
-
.default_source_name : String
Default source name to get packages.
Instance Method Summary
-
#app : Path
Application path, including the
#group
namespace. -
#check
Raises if DPPM isn't installated.
- #clean_unused_packages(confirmation : Bool = true, &) : Set(String)
-
#create
Create
#path
and all its subdirectories needed. -
#delete
Delete the prefix directory path.
-
#delete_src
Delete the packages source
@src
directory. -
#dppm : App
Returns the DPPM application.
-
#dppm_config : Config?
DPPM configuration.
-
#dppm_config=(dppm_config : Config)
DPPM configuration.
-
#each_app(&block : App -> )
Yields each application in the group.
-
#each_pkg(&block : Pkg -> )
Yields each built package of the source.
-
#each_src(&block : Src -> )
Yields each source package of the source.
-
#group : String
Application group namespace used.
-
#new_app(name : String) : App
Creates a new
App
application object. -
#new_pkg(package : String, version : String? = nil, tag : String? = nil) : Pkg
Creates a new
Pkg
package object. -
#new_src(name : String) : Src
Creates a new
Src
source package object. -
#path : Path
Path of the prefix on the filesystem.
-
#pkg : Path
Package path, including the
#source_name
. -
#root_app : Path
Base path for applications.
-
#root_pkg : Path
Base path for packages.
-
#root_src : Path
Base path for packages sources.
-
#source_name : String
Source name to use when building packages and creating applications.
-
#source_path
Source path used, which can be an URL or a filesystem path.
-
#src : Path
Package path, including the
#source_name
. -
#update(force : Bool = false)
Download, or update a packages source cache.
Constructor Detail
Class Method Detail
Instance Method Detail
Creates a new Pkg
package object.
A package name includes the package and optionally a version/tag separated by either a _
or :
.
If no version is provided, latest one will be used.