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.1"

Class Method Summary collapse

Class Method Details

.configurationObject



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

def configuration
  @configuration ||= Configuration.new
end

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

Yields:



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

def configure
  yield configuration
end

.resync!Object



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

def resync!
  configuration.clear!
  sync!
end

.sync!(output: nil) ⇒ Object



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

def sync!(output: nil)
  configuration.sync_service(output: output).perform
end