Puppet Function: python::data

Defined in:
lib/puppet/functions/python/data.rb
Function type:
Ruby 4.x API

Overview

python::data()Any

Returns:

  • (Any)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/puppet/functions/python/data.rb', line 1

Puppet::Functions.create_function(:'python::data') do
  def data
    user = closure_scope.lookupvar('::boxen_user')
    prefix = closure_scope.lookupvar('::boxen::config::home')
    installdir = closure_scope.lookupvar('::homebrew::config::installdir')
    {
      'python::user' => user,
      'python::prefix' => prefix,
      'python::pyenv::user' => user,
      'python::pyenv::prefix' => "#{prefix}/pyenv",
      'python::pyenv::ensure' => 'v20150913',
      'python::version_alias' => {
       '2' => '2.7.10',
       '2.6' => '2.6.9',
       '2.7' => '2.7.10',
       '3' => '3.5.0',
       '3.4' => '3.4.3',
       '3.5' => '3.5.0'
      },
      'python::version_env' => {
      }
    }
  end
end