Module git

Ensure that a Git repository is cloned or pull.

Info:

Functions

clone(repository)
Ensure that a repository is cloned into a specified path.

Promiser:

    path where to clone the repository

Aliases:

  • repo
  • cloned

Parameters:

  • repository The URL of the repository. [ALIAS: url,repo] [REQUIRED]

Usage:

    git.repo"/home/user/work"{
        repo = "https://github.com/torvalds/linux.git"
    }
pull(repository)
Run git pull for a repository. This always attempts to run the command. Useful as a handler.

Promiser:

    path where to clone the repository

Parameters:

  • repository The URL of the repository. [ALIAS: url,repo] [REQUIRED]

Usage:

    git.pull("/home/user/work"){
        repo = "https://github.com/torvalds/linux.git"
    }
generated by LDoc 1.4.6 Last updated 2017-05-09 15:50:38