diff options
Diffstat (limited to 'lib/chef/deprecation')
-rw-r--r-- | lib/chef/deprecation/mixin/template.rb | 4 | ||||
-rw-r--r-- | lib/chef/deprecation/provider/file.rb | 4 | ||||
-rw-r--r-- | lib/chef/deprecation/provider/remote_directory.rb | 4 | ||||
-rw-r--r-- | lib/chef/deprecation/provider/template.rb | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/lib/chef/deprecation/mixin/template.rb b/lib/chef/deprecation/mixin/template.rb index 58a661c4bd..eaa14b6501 100644 --- a/lib/chef/deprecation/mixin/template.rb +++ b/lib/chef/deprecation/mixin/template.rb @@ -16,8 +16,8 @@ # limitations under the License. # -require 'tempfile' -require 'erubis' +require "tempfile" +require "erubis" class Chef module Deprecation diff --git a/lib/chef/deprecation/provider/file.rb b/lib/chef/deprecation/provider/file.rb index 31038ab3d8..d37bc4241f 100644 --- a/lib/chef/deprecation/provider/file.rb +++ b/lib/chef/deprecation/provider/file.rb @@ -16,7 +16,7 @@ # limitations under the License. # -require 'chef/util/path_helper' +require "chef/util/path_helper" class Chef module Deprecation @@ -59,7 +59,7 @@ class Chef @current_resource.path else suppress_resource_reporting = true # suppress big diffs going to resource reporting service - tempfile = Tempfile.new('chef-tempfile') + tempfile = Tempfile.new("chef-tempfile") tempfile.path end diff --git a/lib/chef/deprecation/provider/remote_directory.rb b/lib/chef/deprecation/provider/remote_directory.rb index cc8026ec55..ece5ca0945 100644 --- a/lib/chef/deprecation/provider/remote_directory.rb +++ b/lib/chef/deprecation/provider/remote_directory.rb @@ -33,13 +33,13 @@ class Chef # List all excluding . and .. def ls(path) - files = Dir.glob(::File.join(Chef::Util::PathHelper.escape_glob(path), '**', '*'), + files = Dir.glob(::File.join(Chef::Util::PathHelper.escape_glob(path), "**", "*"), ::File::FNM_DOTMATCH) # Remove current directory and previous directory files = files.reject do |name| basename = Pathname.new(name).basename().to_s - ['.', '..'].include?(basename) + [".", ".."].include?(basename) end # Clean all the paths... this is required because of the join diff --git a/lib/chef/deprecation/provider/template.rb b/lib/chef/deprecation/provider/template.rb index 34e5f54b7e..c95690f2cc 100644 --- a/lib/chef/deprecation/provider/template.rb +++ b/lib/chef/deprecation/provider/template.rb @@ -16,7 +16,7 @@ # limitations under the License. # -require 'chef/deprecation/mixin/template' +require "chef/deprecation/mixin/template" class Chef module Deprecation |