You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 plistdescribecommand('security authorizationdb read system.preferences > /tmp/system.preferences.plist')doend
...
describeplist('/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.describeplist_string(foo)do
...
end
...
The text was updated successfully, but these errors were encountered:
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:
But the
command
resource block doesn't seem to successfully create the file so that it can be accessed by theplist
block, I'm not sure why.Possible Implementation
Something like
The text was updated successfully, but these errors were encountered: