diff options
author | Lamont Granquist <lamont@opscode.com> | 2013-03-15 15:17:07 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@opscode.com> | 2013-03-15 16:39:35 -0700 |
commit | b480aca6eb0167928cabfb47291a91ddcb50e434 (patch) | |
tree | b2375ab1e65ed8535ee4dd9a5fb552a5f5285a72 /lib/chef/provider/remote_directory.rb | |
parent | 6b653284a81195d13c6561371fdcf70bb0fa0ee7 (diff) | |
download | chef-b480aca6eb0167928cabfb47291a91ddcb50e434.tar.gz |
refactoring of file providers
Diffstat (limited to 'lib/chef/provider/remote_directory.rb')
-rw-r--r-- | lib/chef/provider/remote_directory.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/provider/remote_directory.rb b/lib/chef/provider/remote_directory.rb index 0412e8a668..bd4243cd84 100644 --- a/lib/chef/provider/remote_directory.rb +++ b/lib/chef/provider/remote_directory.rb @@ -31,7 +31,6 @@ class Chef class Provider class RemoteDirectory < Chef::Provider::Directory - include Chef::Mixin::EnforceOwnershipAndPermissions include Chef::Mixin::FileClass def action_create @@ -67,7 +66,7 @@ class Chef if @new_resource.purge unmanaged_files.sort.reverse.each do |f| # file_class comes from Chef::Mixin::FileClass - if ::File.directory?(f) && !Chef::Platform.windows? && !file_class.symlink?(f.dup) + if ::File.directory?(f) && !Chef::Platform.windows? && !file_class.symlink?(f.dup) # Linux treats directory symlinks as files # Remove a directory as a directory when not on windows if it is not a symlink purge_directory(f) |