Sha256: 12efe81540a1037477f356914f4032b8fd939fd0dd35620c99816875387a443f

Contents?: true

Size: 845 Bytes

Versions: 9

Compression:

Stored size: 845 Bytes

Contents

# == Define: rbenv::rehash
#
# Run `rbenv rehash` for a specific version of Ruby. Typically refreshed by
# `Rbenv::Version[]` after installation.
#
# The title of the resource is used as the version.
#
# NB: Exec[] resources do not assume that rbenv has been initialised from
# `profile.d` because Puppet may be running from a non-login and
# non-interactive shell (e.g. cron). They explicitly pass `RBENV_ROOT` and
# reference `rbenv exec` (rather than the shim) for this reason.
#
# TODO: Does this need to be version specific?
#
define rbenv::rehash() {
  include rbenv::params

  $version = $title

  exec { "rbenv rehash for ${version}":
    command     => "${rbenv::params::rbenv_binary} rehash",
    environment => [
      "RBENV_ROOT=${rbenv::params::rbenv_root}",
      "RBENV_VERSION=${version}",
    ],
    refreshonly => true,
  }
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
freighthop-0.2.1 modules/rbenv/manifests/rehash.pp
freighthop-0.2.0 modules/rbenv/manifests/rehash.pp
freighthop-0.1.0 modules/rbenv/manifests/rehash.pp
freighthop-0.0.6 modules/rbenv/manifests/rehash.pp
freighthop-0.0.5 modules/rbenv/manifests/rehash.pp
freighthop-0.0.4 modules/rbenv/manifests/rehash.pp
freighthop-0.0.3 modules/rbenv/manifests/rehash.pp
freighthop-0.0.2 modules/rbenv/manifests/rehash.pp
freighthop-0.0.1 modules/rbenv/manifests/rehash.pp