Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fail on unknown dependencies

  • Loading branch information...
commit 7cbfaf3ea92d9eec24d3d0232f27535d6bce7170 1 parent e24d663
Juan Manuel Barreneche jbarreneche authored
6 rvm/manifests/init.pp
@@ -9,7 +9,9 @@
9 9 'ubuntu', 'debian': {
10 10 $dependencies_names = ["build-essential", "curl", "git-core"]
11 11 }
12   - default: { $dependencies_names = "Unknwonw dependencies"}
  12 + default: {
  13 + fail "Unknwonw RVM dependencies for ${::operatingsystem}"
  14 + }
13 15 }
14 16
15 17 package {"rvm_dependencies":
@@ -36,7 +38,7 @@
36 38 user => 'root',
37 39 unless => 'which rvm',
38 40 command => "curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable",
39   - require => Class['rvm::dependencies'],
  41 + require => Class['rvm::dependencies'],
40 42 }
41 43
42 44 Class["rvm"] -> Package<| provider == rvm |>
6 rvm/manifests/passenger/apache.pp
@@ -2,14 +2,16 @@
2 2 $ruby
3 3 ) {
4 4
5   - case $operatingsystem {
  5 + case $::operatingsystem {
6 6 'centos', 'redhat', 'fedora': {
7 7 $modules_path = '/etc/httpd/modules'
8 8 }
9 9 'ubuntu', 'debian': {
10 10 $modules_path = '/etc/apache2/mods-enabled'
11 11 }
12   - default: { $dependencies_names = "Unknwonw dependencies"}
  12 + default: {
  13 + fail "Unknown RVM dependencies for ${::operatingsystem}"
  14 + }
13 15 }
14 16
15 17 package {"${ruby}@global:passenger":

0 comments on commit 7cbfaf3

Please sign in to comment.
Something went wrong with that request. Please try again.