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
Copy file name to clipboardExpand all lines: language/resource-api/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -184,7 +184,7 @@ A missing `:should` entry indicates that a resource should be removed from the s
184
184
185
185
The `set` method should always return `nil`. Any progress signaling should be done through the logging utilities described below. If the `set` method throws an exception, all resources that should change in this call and haven't already been marked with a definite state, will be marked as failed. The runtime will only call the `set` method if there are changes to be made, especially in the case of resources marked with `noop => true` (either locally or through a global flag). The runtime will not pass them to `set`. See `supports_noop` below for changing this behaviour if required.
186
186
187
-
Both methods take a `context` parameter which provides utilties from the runtime environment, and is decribed in more detail there.
187
+
Both methods take a `context` parameter which provides utilities from the runtime environment, and is described in more detail there.
188
188
189
189
## Implementing simple providers
190
190
@@ -208,17 +208,17 @@ class Puppet::Provider::AptKey::AptKey < Puppet::ResourceApi::SimpleProvider
208
208
Once all of that is in place, instead of the `set` method, the provider needs to implement the `create`, `update` or `delete` methods:
209
209
210
210
*`create(context, name, should)`: This is called when a new resource should be created.
211
-
*`context`: provides utilties from the runtime environment, and is decribed in more detail there.
211
+
*`context`: provides provides utilities from the runtime environment, and is described in more detail there.
212
212
*`name`: the name or hash of the new resource.
213
213
*`should`: a hash of the attributes for the new instance.
214
214
215
215
*`update(context, name, should)`: This is called when a resource should be updated.
216
-
*`context`: provides utilties from the runtime environment, and is decribed in more detail there.
216
+
*`context`: provides provides utilities from the runtime environment, and is described in more detail there.
217
217
*`name`: the name or hash of the resource to change.
218
218
*`should`: a hash of the desired state of the attributes.
219
219
220
220
*`delete(context, name)`: This is called when a resource should be deleted.
221
-
*`context`: provides utilties from the runtime environment, and is decribed in more detail there.
221
+
*`context`: provides provides utilities from the runtime environment, and is described in more detail there.
222
222
*`name`: the name or hash of the resource that should be deleted.
223
223
224
224
The `SimpleProvider` takes care of basic logging, and error handling.
0 commit comments