class Mint::Installer::Repository
- Mint::Installer::Repository
- Reference
- Object
Overview
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.
Included Modules
Defined in:
installer/repository.crConstructors
Class Method Summary
Instance Method Summary
-
#checkout(tag)
Checks out the given tag or version.
-
#clone
Clones the repository.
-
#dependencies(tag)
Returns the dependencies of the tag or version.
-
#directory
The directory of the repository
-
#exists?
Returns true if the repository is cloned yet.
- #id
-
#json(version : Semver)
Returns the mint.json of the given version.
-
#json(tag)
Returns the mint.json of the given tag or version.
- #name : String
- #open
- #target : String | Nil
- #terminal
-
#update
Updates the repository.
- #url : String
- #version : Semver | Nil
-
#versions : Array(Semver)
Gets the versions of a package from its tags
Instance methods inherited from module Mint::Errorable
error!(name : Symbol, &)
error!,
unreachable!(message : String)
unreachable!
Constructor Detail
def self.new(name : String, url : String, target : Nil | String = nil, version : Nil | Mint::Installer::Semver = nil)
#