Puppet Function: git::data

Defined in:
lib/puppet/functions/git/data.rb
Function type:
Ruby 3.x API

Overview

git::data()Any

Returns:

  • (Any)


2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/puppet/functions/git/data.rb', line 2

newfunction(:'git::data', :type => :rvalue) do
  configdir = closure_scope.lookupvar('::boxen::config::configdir')
  repodir = closure_scope.lookupvar('::boxen::config::repodir')
  homedir = closure_scope.lookupvar('::boxen::config::home')
  {
    'git::configdir'               => "#{configdir}/git",
    'git::package'                 => 'git',
    'git::version'                 => 'latest',
    'git::credentialhelper'        => "#{repodir}/script/boxen-git-credential",
    'git::global_credentialhelper' => "#{homedir}/bin/boxen-git-credential",
    'git::global_excludesfile'     => "#{configdir}/git/gitignore"
  }
end