class

Mint::Installer::Repository

Inherits Mint::Errorable < Reference < Object

This class is for handling git repositories of packages.

Repositories are cloned into a temp directory (/tmp/mint-packages) if not exists and updated when they exists.

Constructors

new(name : String, url : String, target : Nil | String = nil, version : Nil | Mint::Installer::Semver = nil)
Source

Class methods

open(name, url, target = nil, version = nil)
Source

Instance methods

checkout(tag)

Checks out the given tag or version.

Source
clone

Clones the repository.

Source
dependencies(tag)

Returns the dependencies of the tag or version.

Source
directory

The directory of the repository

Source
exists?

Returns true if the repository is cloned yet.

Source
json(version : Semver)

Returns the mint.json of the given version.

Source
json(tag)

Returns the mint.json of the given tag or version.

Source
name
Source
open
Source
target
Source
terminal
Source
update

Updates the repository.

Source
version
Source
versions

Gets the versions of a package from its tags

Source