generated from chef/oss_project_boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Detailed Description
I'd like to be able to point the Plist resource to something other than a file path, i.e a string. From my understanding, not all plists are easily accessible as files on the macOS system and can only be read by dumping from the plist using a command, like security authorization read system.preferences
.
Context
To get around this, I tried:
# Do a command just to dump the plist
describe command('security authorizationdb read system.preferences > /tmp/system.preferences.plist') do
end
...
describe plist('/tmp/system.preferences.plist') do
...
But the command
resource block doesn't seem to successfully create the file so that it can be accessed by the plist
block, I'm not sure why.
Possible Implementation
Something like
foo = #read the file into a string.
describe plist_string(foo) do
...
end
...
Metadata
Metadata
Assignees
Labels
No labels