[Pkg-puppet-devel] [facter] 218/352: (doc) Update documentation for Facter#search
Stig Sandbeck Mathisen
ssm at debian.org
Sun Apr 6 22:21:47 UTC 2014
This is an automated email from the git hooks/post-receive script.
ssm pushed a commit to branch master
in repository facter.
commit b1f70c33f4865c621bffe3421feacdf3006822d1
Author: Adrien Thebo <git at somethingsinistral.net>
Date: Wed Feb 5 13:54:57 2014 -0800
(doc) Update documentation for Facter#search
---
lib/facter.rb | 4 ++--
lib/facter/util/loader.rb | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/facter.rb b/lib/facter.rb
index 6277aeb..68b3d7b 100644
--- a/lib/facter.rb
+++ b/lib/facter.rb
@@ -197,8 +197,8 @@ module Facter
@search_path = []
- # Registers directories to be searched for facts. Relative paths will
- # be interpreted in the current working directory.
+ # Register directories to be searched for facts. The registered directories
+ # must be absolute paths or they will be ignored.
#
# @param dirs [String] directories to search
#
diff --git a/lib/facter/util/loader.rb b/lib/facter/util/loader.rb
index 25339fe..4a71e1e 100644
--- a/lib/facter/util/loader.rb
+++ b/lib/facter/util/loader.rb
@@ -75,7 +75,7 @@ class Facter::Util::Loader
search_paths += @environment_vars["FACTERLIB"].split(File::PATH_SEPARATOR)
end
- search_paths.select! { |path| valid_search_path?(path) }
+ search_paths.delete_if { |path| ! valid_search_path?(path) }
Facter.search_path.each do |path|
if valid_search_path?(path)
@@ -85,7 +85,7 @@ class Facter::Util::Loader
end
end
- search_paths.select! { |path| File.directory?(path) }
+ search_paths.delete_if { |path| ! File.directory?(path) }
search_paths.uniq
end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-puppet/facter.git
More information about the Pkg-puppet-devel
mailing list