Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mirror
chef
Commits
197de760
Commit
197de760
authored
Dec 10, 2012
by
danielsdeleo
Browse files
[CHEF-3557] remove load_current_resource_attrs corpse
parent
283d076c
Changes
3
Hide whitespace changes
Inline
Side-by-side
lib/chef/provider/directory.rb
View file @
197de760
...
...
@@ -33,7 +33,6 @@ class Chef
def
load_current_resource
@current_resource
=
Chef
::
Resource
::
Directory
.
new
(
@new_resource
.
name
)
@current_resource
.
path
(
@new_resource
.
path
)
load_current_resource_attrs
setup_acl
@current_resource
...
...
lib/chef/provider/file.rb
View file @
197de760
...
...
@@ -142,10 +142,6 @@ class Chef
@current_resource
end
# TODO: remove me
def
load_current_resource_attrs
end
def
setup_acl
acl_scanner
=
ScanAccessControl
.
new
(
@new_resource
,
@current_resource
)
acl_scanner
.
set_all!
...
...
spec/unit/provider/file_spec.rb
View file @
197de760
...
...
@@ -115,8 +115,19 @@ describe Chef::Provider::File do
end
end
context
"load_current_resource_attrs"
,
:windows_only
do
pending
"CHEF-3557: Fix implicit resource change collection on Windows"
describe
"when reporting security metadata on windows"
do
it
"records the file owner"
do
pending
end
it
"records rights for each user in the ACL"
do
pending
end
it
"records deny_rights for each user in the ACL"
do
pending
end
end
it
"should load a mostly blank current resource if the file specified in new_resource doesn't exist/isn't readable"
do
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment