lib/chef/resource/remote_directory.rb in chef-10.34.6 vs lib/chef/resource/remote_directory.rb in chef-11.0.0.beta.0

- old
+ new

@@ -49,10 +49,16 @@ @allowed_actions.push(:create, :create_if_missing, :delete) @cookbook = nil @provider = Chef::Provider::RemoteDirectory end + if Chef::Platform.windows? + # create a second instance of the 'rights' attribute + rights_attribute(:files_rights) + end + + def source(args=nil) set_or_return( :source, args, :kind_of => String @@ -79,14 +85,9 @@ set_or_return( :files_group, arg, :regex => Chef::Config[:group_valid_regex] ) - end - - if Chef::Platform.windows? - # create a second instance of the 'rights' attribute - Chef::Mixin::Securable.rights_attribute(:files_rights) end def files_mode(arg=nil) set_or_return( :files_mode,