Sha256: 0ceef88b3bbeefe596c9813aab5c501fabac133ea044b165130007ae1d649ceb

Contents?: true

Size: 933 Bytes

Versions: 12

Compression:

Stored size: 933 Bytes

Contents

define rbenv::client(
  $user,
  $home,
  $ruby,
  $owner,
  $source,
  $rc = ".profile"
) {
  if ! defined(Exec["rbenv::compile ${owner} ${ruby}"]) {
    fail("Ruby version ${ruby} is not compiled for ${owner}")
  }

  file {"${user}/.rbenv":
    ensure => link,
    path   => "${home}/.rbenv",
    target => "${source}/.rbenv",
  }

  file {"${user}/${rc}":
    ensure => link,
    path   => "${home}/${rc}",
    target => "${source}/${rc}",
  }

  file {"${user}/.gemrc":
    ensure => link,
    path   => "${home}/.gemrc",
    target => "${source}/.gemrc",
  }

  file {"${user}/.rbenv-version":
    ensure  => present,
    path    => "${home}/.rbenv-version",
    content => "$ruby\n",
  }

  file {"${user}/bin":
    ensure => directory,
    path   => "${home}/bin",
    owner  => $user,
  }

  file {"${user}/bin/rbenv":
    ensure => link,
    path   => "${home}/bin/rbenv",
    target => "${source}/.rbenv/bin/rbenv",
  }
}

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
bebox-0.0.1 lib/templates/puppet/step-0/modules/rbenv/manifests/client.pp
freighthop-0.6.1 modules/rbenv/manifests/client.pp
freighthop-0.6.0 modules/rbenv/manifests/client.pp
freighthop-0.5.2 modules/rbenv/manifests/client.pp
freighthop-0.5.1 modules/rbenv/manifests/client.pp
freighthop-0.5.0 modules/rbenv/manifests/client.pp
freighthop-0.4.1 modules/rbenv/manifests/client.pp
freighthop-0.4.0 modules/rbenv/manifests/client.pp
freighthop-0.3.3 modules/rbenv/manifests/client.pp
freighthop-0.3.2 modules/rbenv/manifests/client.pp
freighthop-0.3.1 modules/rbenv/manifests/client.pp
freighthop-0.3.0 modules/rbenv/manifests/client.pp