Puppet Class: ruby::build

Defined in:
manifests/build.pp

Overview

Parameters:

  • ensure (Any) (defaults to: $ruby::build::ensure)
  • prefix (Any) (defaults to: $ruby::build::prefix)
  • user (Any) (defaults to: $ruby::build::user)


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'manifests/build.pp', line 3

class ruby::build(
  $ensure = $ruby::build::ensure,
  $prefix = $ruby::build::prefix,
  $user   = $ruby::build::user,
) {
  require ruby

  repository { $prefix:
    ensure => $ensure,
    force  => true,
    source => 'sstephenson/ruby-build',
    user   => $user,
  }

  ensure_resource('file', "${::ruby::prefix}/cache/rubies", {
    'ensure' => 'directory',
    'owner'  => $user,
  })

}