struct

Fluxion::GitRepo

Inherits Struct < Value < Object

One repository inside a git-repo step.

ref is a full commit rather than a branch or tag on purpose: a bootstrap profile that installs different code on different days is not reproducible, and a moving tag is indistinguishable from a compromised one.

Constants

COMMIT_PATTERN = /\A[0-9a-fA-F]{40}\z/

Constructors

new(url : String, destination : String, ref : String, depth : Int32 | Nil = nil, submodules : Bool = false)
Source

Class methods

commit?(ref : String) : Bool
Source

Instance methods

depth
Source
destination

Supports shell-style ${VAR:-default} and ~ so paths can be copied straight out of an existing shell script.

Source
submodules?
Source