Signed-off-by: James Turnbull <[email protected]>
---
 lib/puppet/feature/rails.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/puppet/feature/rails.rb b/lib/puppet/feature/rails.rb
index 597b028..aec364b 100644
--- a/lib/puppet/feature/rails.rb
+++ b/lib/puppet/feature/rails.rb
@@ -9,7 +9,7 @@ Puppet.features.add(:rails) do
     begin
         require 'active_record'
     rescue LoadError => detail
-        if Facter["operatingsystem"].value == "Debian" and 
FileTest.exists?("/usr/share/rails")
+        if %w{Debian Ubuntu}.include?(Facter.value(:operatingsystem)) and 
FileTest.exists?("/usr/share/rails")
             count = 0
             Dir.entries("/usr/share/rails").each do |dir|
                 libdir = File.join("/usr/share/rails", dir, "lib")
-- 
1.6.0.6


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to