Skip to content

Commit

Permalink
Issue #24 Ensure curl is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Sanchez committed Mar 15, 2014
1 parent 7b89214 commit 1c6dc81
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions manifests/system.pp
Expand Up @@ -8,6 +8,15 @@
default => $version,
}

# curl needs to be installed
case $::kernel {
Linux: {
ensure_packages(['curl'])
Package['curl'] -> Exec['system-rvm']
}
default: {}
}

exec { 'system-rvm':
path => '/usr/bin:/usr/sbin:/bin',
command => "/usr/bin/curl -sSL https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer | \
Expand Down

0 comments on commit 1c6dc81

Please sign in to comment.