Class: DashOverlord::UseCases::V1::Videos::Import::FromPostgresToElasticSearch::Base
- Defined in:
- lib/dash_overlord/use_cases/v1/videos/import/from_postgres_to_elastic_search/base.rb
Overview
DashOverlord::UseCases::V1::Videos::Import::FromPostgresToElasticSearch::Base.perform
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
context_reader, #final, #initialize, perform, target, #target_valid?
Constructor Details
This class inherits a constructor from DashOverlord::UseCases::Base
Instance Method Details
#perform ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/dash_overlord/use_cases/v1/videos/import/from_postgres_to_elastic_search/base.rb', line 12 def perform context.segment_uid = 'hhc' invoke! DeleteElasticSearchBeeVideos postgres_bee_videos.each do |postgres_bee_video| invoke! StoreBeeVideo, postgres_bee_video: postgres_bee_video end end |