Added a nxScript resource similar to the one found in the nx module. Currently supports three parameters, GetScript, TestScript, and SetScript. GetScript and SetScript are optional parameters.
GetScript: Must return a hashtable that contains a non-empty list of Reason objects under the Reasons key. Reasons can be used to explain why a resource is not compliant. If Reasons are not returned in the right format, for example, if a hashtable is not returned or if Reasons are in the wrong format, Get() will throw an error. If not defined, a default Reason will be returned: "Cannot determine reason for non-compliance. Please define Reasons in the hashtable returned from the GetScript script block to return reasons for non-compliance."
TestScript: Must return a Boolean. Evaluates whether the machine is in the correct state. If a Boolean is not returned, Test() will throw an error.
SetScript: Executed if TestScript returns False.
This Pull Request (PR) fixes the following issues
Fixes #22
Task list
[x] Added an entry to the change log under the Unreleased section of the file CHANGELOG.md.
Entry should say what was changed and how that affects users (if applicable), and
reference the issue being resolved (if applicable).
[x] Resource documentation added/updated in README.md.
[x] Comment-based help added/updated.
[x] Localization strings added/updated in all localization files as appropriate.
Pull Request (PR) description
Added a nxScript resource similar to the one found in the nx module. Currently supports three parameters, GetScript, TestScript, and SetScript. GetScript and SetScript are optional parameters.
This Pull Request (PR) fixes the following issues
Task list