diff options
| author | luke <luke@1f5c1d6a-bddf-0310-8f58-fc49e503516a> | 2006-05-23 20:56:36 +0000 |
|---|---|---|
| committer | luke <luke@1f5c1d6a-bddf-0310-8f58-fc49e503516a> | 2006-05-23 20:56:36 +0000 |
| commit | b208f47bfad865ca7d7a4df11fecd4b361d59259 (patch) | |
| tree | 7bfce22bed84b30bfb5aa4746948eb43c8ab4983 /lib | |
| parent | 999929e8d2e805dad0e7f2ecb70d17d60cd485de (diff) | |
fixing small bug that only occurs with gems
git-svn-id: http://reductivelabs.com/svn/facter/trunk@109 1f5c1d6a-bddf-0310-8f58-fc49e503516a
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/facter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/facter.rb b/lib/facter.rb index 5111ddd..3337218 100644 --- a/lib/facter.rb +++ b/lib/facter.rb @@ -11,7 +11,7 @@ class Facter include Comparable include Enumerable -FACTERVERSION = '1.2.0' +FACTERVERSION = '1.1.4' # = Facter 1.0 # Functions as a hash of 'facts' you might care about about your # system, such as mac address, IP address, Video card, etc. @@ -859,7 +859,7 @@ FACTERVERSION = '1.2.0' # Now see if we can find any other facts $:.each do |dir| fdir = File.join(dir, "facter") - if FileTest.exists?(fdir) + if FileTest.exists?(fdir) and FileTest.directory?(fdir) Dir.chdir(fdir) do Dir.glob("*.rb").each do |file| if file == "local.rb" |
