Skip to content

Commit 04f061e

Browse files
committed
(maint) typos
1 parent 3ae711f commit 04f061e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

language/resource-api/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ A missing `:should` entry indicates that a resource should be removed from the s
184184

185185
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.
186186

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.
188188

189189
## Implementing simple providers
190190

@@ -208,17 +208,17 @@ class Puppet::Provider::AptKey::AptKey < Puppet::ResourceApi::SimpleProvider
208208
Once all of that is in place, instead of the `set` method, the provider needs to implement the `create`, `update` or `delete` methods:
209209

210210
* `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.
212212
* `name`: the name or hash of the new resource.
213213
* `should`: a hash of the attributes for the new instance.
214214

215215
* `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.
217217
* `name`: the name or hash of the resource to change.
218218
* `should`: a hash of the desired state of the attributes.
219219

220220
* `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.
222222
* `name`: the name or hash of the resource that should be deleted.
223223

224224
The `SimpleProvider` takes care of basic logging, and error handling.

0 commit comments

Comments
 (0)