Class: Reference::Updater
- Inherits:
-
Object
- Object
- Reference::Updater
- Defined in:
- lib/reference/updater.rb
Overview
Public: Writes reference data back to the file system, which will automatically get loaded next time. This will also get flagged in source control as an update that others will receive, who are running locally.
Instance Method Summary collapse
-
#initialize ⇒ Updater
constructor
This constructor sets up Writer class that we offload the low level export work to.
- #perform_export ⇒ Object
Constructor Details
#initialize ⇒ Updater
This constructor sets up Writer class that we offload the low level export work to.
8 9 10 |
# File 'lib/reference/updater.rb', line 8 def initialize @writer = Interchange::Writer.new end |
Instance Method Details
#perform_export ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/reference/updater.rb', line 13 def perform_export # Start the export operation block: @writer.mark_export_operation do # Kick off the underlying export operation on the reference data model requested: @writer.export DataSet, base_path: Reference::BASE_PATH, suppress_database_ids: true end end |