summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-09-19 11:47:25 -0700
committerClaire McQuin <claire@getchef.com>2014-09-22 11:22:29 -0700
commitab628a9bb39e06a3b56913b240ee767a031c517d (patch)
tree8d55ba27feb2ca9fa49dbc1d1a3e056b845ac44f
parent8d4b04c2e12a728232269602be51aeda03ef497b (diff)
downloadchef-ab628a9bb39e06a3b56913b240ee767a031c517d.tar.gz
Escape path for globbing.
-rw-r--r--lib/chef/provider.rb1
-rw-r--r--lib/chef/provider/deploy.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/provider.rb b/lib/chef/provider.rb
index bdfe826944..b25f83363b 100644
--- a/lib/chef/provider.rb
+++ b/lib/chef/provider.rb
@@ -22,6 +22,7 @@ require 'chef/mixin/convert_to_class_name'
require 'chef/mixin/enforce_ownership_and_permissions'
require 'chef/mixin/why_run'
require 'chef/mixin/shell_out'
+require 'chef/util/path_helper'
class Chef
class Provider
diff --git a/lib/chef/provider/deploy.rb b/lib/chef/provider/deploy.rb
index 426e69644e..d443093707 100644
--- a/lib/chef/provider/deploy.rb
+++ b/lib/chef/provider/deploy.rb
@@ -243,7 +243,7 @@ class Chef
end
def all_releases
- Dir.glob(@new_resource.deploy_to + "/releases/*").sort
+ Dir.glob(Chef::Util::PathHelper.escape_glob(@new_resource.deploy_to) + "/releases/*").sort
end
def update_cached_repo