SyncPlugin

SyncPlugin

Plugin responsible for applying synchronization rules.

Constructor

new SyncPlugin(rules, options)

Source:
Parameters:
Name Type Description
rules Object A Map with synchronization rules to be applied. If defined, overrides the rules defined on the model's config.
options Object An object with options to configure the plugin.

Extends

  • Plugin

Methods

register(The)

The Sync Plugin binds the 'post_config' and 'part' events, in order to: - retrieve the model's configuration. - change the necessary parts making them comply with the syncing rules.
Source:
Parameters:
Name Type Description
The Ripe Ripe instance in use.

unregister(The)

The unregister to be called (by the owner) the plugins unbinds events and executes any necessary cleanup operation.
Source:
Parameters:
Name Type Description
The Ripe Ripe instance in use.