MCPcopy Create free account
hub / github.com/PowerShell/DSC / export

Method export

lib/dsc-lib/src/dscresources/dscresource.rs:548–558  ·  view source on GitHub ↗
(&self, input: &str)

Source from the content-addressed store, hash-verified

546 }
547
548 fn export(&self, input: &str) -> Result<ExportResult, DscError> {
549 debug!("{}", t!("dscresources.dscresource.invokeExport", resource = self.type_name));
550 if let Some(deprecation_message) = self.deprecation_message.as_ref() {
551 warn!("{}", t!("dscresources.dscresource.deprecationMessage", resource = self.type_name, message = deprecation_message));
552 }
553 if let Some(adapter) = &self.require_adapter {
554 return self.invoke_export_with_adapter(adapter, self, input);
555 }
556
557 command_resource::invoke_export(self, Some(input), self.target_resource.as_deref())
558 }
559
560 fn resolve(&self, input: &str) -> Result<ResolveResult, DscError> {
561 debug!("{}", t!("dscresources.dscresource.invokeResolve", resource = self.type_name));

Callers 4

get_allFunction · 0.80
invoke_dsc_resourceMethod · 0.80

Calls 3

invoke_exportFunction · 0.70
as_refMethod · 0.45

Tested by

no test coverage detected