]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/chef/libraries/remote_directory.rb
Rebuild assets when the configuration changes
[chef.git] / cookbooks / chef / libraries / remote_directory.rb
index 730535d445445f6cbe0a7446661bebea39c2bc56..959eb29409445514cf376d133d26cdadfbb7e83c 100644 (file)
@@ -15,7 +15,7 @@ class Chef
         return unless @new_resource.purge
 
         files_to_purge = Set.new(
         return unless @new_resource.purge
 
         files_to_purge = Set.new(
-          Dir.glob(::File.join(@new_resource.path, '**', '*'), ::File::FNM_DOTMATCH).select do |name|
+          Dir.glob(::File.join(@new_resource.path, "**", "*"), ::File::FNM_DOTMATCH).select do |name|
             name !~ /(?:^|#{Regexp.escape(::File::SEPARATOR)})\.\.?$/
           end
         )
             name !~ /(?:^|#{Regexp.escape(::File::SEPARATOR)})\.\.?$/
           end
         )