Module: Keinaufwand::Sync

Defined in:
lib/keinaufwand/sync_core/asset.rb,
lib/keinaufwand/sync_core/engine.rb,
lib/keinaufwand/sync_core/record.rb,
lib/keinaufwand/sync_core/railtie.rb,
lib/keinaufwand/sync_core/version.rb,
lib/keinaufwand/sync_core/sync_state.rb,
lib/keinaufwand/sync_core/sync_service.rb,
lib/keinaufwand/sync_core/configuration.rb,
lib/keinaufwand/sync_core/index_manager.rb,
lib/keinaufwand/sync_core/webhook_receipt.rb,
lib/keinaufwand/sync_core/webhook_processor.rb,
lib/keinaufwand/sync_core/webhooks_controller.rb,
lib/generators/keinaufwand/sync/indexes/indexes_generator.rb,
lib/generators/keinaufwand/sync/install/install_generator.rb

Defined Under Namespace

Modules: RelationMethods Classes: Asset, Configuration, Engine, IndexManager, IndexesGenerator, InstallGenerator, Railtie, Record, SyncService, SyncState, WebhookProcessor, WebhookReceipt, WebhooksController

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.configurationObject



83
84
85
# File 'lib/keinaufwand/sync_core/configuration.rb', line 83

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



87
88
89
# File 'lib/keinaufwand/sync_core/configuration.rb', line 87

def configure
  yield configuration
end

.resync!Object



95
96
97
98
# File 'lib/keinaufwand/sync_core/configuration.rb', line 95

def resync!
  configuration.clear!
  sync!
end

.sync!Object



91
92
93
# File 'lib/keinaufwand/sync_core/configuration.rb', line 91

def sync!
  configuration.sync_service.perform
end