-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export support for PS class-based resources #307
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix build issues. This design will allow class based resources implementing export
to still work with DSC v2, right? v2 should just ignore the new export
method? Ideally we should have a test to ensure we aren't breaking compat.
Yes.
Correct.
We already test that implicitly. We are using v2 throughout PowerShellGroup resource tests. |
PR Summary
Fix #183
2 updates:
Export
support for provider-based resources.It is done using
export
node in*.dsc.resource.json
file similar toget/set/test
.Export
support to class-based PS resources.To support this a DscResource class has to implement a static
Export
function like so: