Defined Type: ruby::source
- Defined in:
- manifests/source.pp
Overview
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'manifests/source.pp', line 8
define ruby::source($source, $ensure = 'present') {
if $ensure == 'present' {
exec { "gem sources --add ${source}":
unless => "gem sources --list | grep ${source}"
}
}
if $ensure == 'absent' {
exec { "gem sources --remove ${source}":
onlyif => "gem sources --list | grep ${source}"
}
}
}
|