Method: R10K::Source::Git#initialize
- Defined in:
- lib/r10k/source/git.rb
#initialize(name, basedir, options = {}) ⇒ Git
Initialize the given source.
56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/r10k/source/git.rb', line 56 def initialize(name, basedir, = {}) super @environments = [] @remote = [:remote] @invalid_branches = ([:invalid_branches] || 'correct_and_warn') @ignore_branch_prefixes = [:ignore_branch_prefixes] @cache = R10K::Git.cache.generate(@remote) end |