Skip to content

Commit

Permalink
Merge pull request #747 from chef/jdm/escape-dir-glob
Browse files Browse the repository at this point in the history
Use escape_glob_dir instead of escape_glob
  • Loading branch information
thommay committed Mar 7, 2016
2 parents 75ab6df + 4ea42b7 commit da65e43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ platform:
environment:
matrix:
- ruby_version: "200"
- ruby_version: "21"
- ruby_version: "22"

clone_folder: c:\projects\ohai
clone_depth: 1
Expand Down
2 changes: 1 addition & 1 deletion lib/ohai/loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class PluginFile < Struct.new(:path, :plugin_root)

# Finds all the *.rb files under the configured paths in :plugin_path
def self.find_all_in(plugin_dir)
Dir[File.join(ChefConfig::PathHelper.escape_glob(plugin_dir), "**", "*.rb")].map do |file|
Dir[File.join(ChefConfig::PathHelper.escape_glob_dir(plugin_dir), "**", "*.rb")].map do |file|
new(file, plugin_dir)
end
end
Expand Down

0 comments on commit da65e43

Please sign in to comment.