Sha256: 358dcd21a6f8ed0fc4f8404664151b6a8674bd2db2f047ab0c7ecdd983270bef

Contents?: true

Size: 697 Bytes

Versions: 9

Compression:

Stored size: 697 Bytes

Contents

# == Define: rbenv::alias
#
# Create an alias from one version of Ruby to an installed one. Can be used
# to abstract patch numbers from Ruby semvers.
#
# The title of the resource is used as the aliased version.
#
# === Parameters
#
# [*to_version*]
#   Real version to link to. Depends on a matching `Rbenv::Version[]`
#   resource.
#
# === Examples
#
# rbenv::version { '1.9.3-p123': }
# rbenv::alias { '1.9.3':
#   to_version => '1.9.3-p123',
# }
#
define rbenv::alias(
  $to_version
) {
  $version = $title
  $versions_path = '/usr/lib/rbenv/versions'

  file { "${versions_path}/${version}":
    ensure  => link,
    target  => $to_version,
    require => Rbenv::Version[$to_version],
  }
}

Version data entries

9 entries across 9 versions & 1 rubygems

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