Class: BulkImports::Groups::Pipelines::NamespaceSettingsPipeline
- Inherits:
-
Object
- Object
- BulkImports::Groups::Pipelines::NamespaceSettingsPipeline
- Includes:
- Pipeline
- Defined in:
- lib/bulk_imports/groups/pipelines/namespace_settings_pipeline.rb
Constant Summary
Constants included from Pipeline
Pipeline::CACHE_KEY_EXPIRATION, Pipeline::EMPTY_EXPORT_STATUS_TIMEOUT, Pipeline::ExpiredError, Pipeline::FailedError, Pipeline::NDJSON_EXPORT_TIMEOUT, Pipeline::NotAllowedError
Constants included from Pipeline::Runner
Pipeline::Runner::MarkedAsFailedError
Instance Method Summary collapse
Methods included from Pipeline
#current_user, #import_export_config, #initialize, #portable, #tracker
Methods included from Pipeline::Runner
Instance Method Details
#after_run(_context) ⇒ Object
29 30 31 |
# File 'lib/bulk_imports/groups/pipelines/namespace_settings_pipeline.rb', line 29 def after_run(_context) extractor.remove_tmpdir end |
#load(_context, data) ⇒ Object
23 24 25 26 27 |
# File 'lib/bulk_imports/groups/pipelines/namespace_settings_pipeline.rb', line 23 def load(_context, data) return unless data ::Groups::UpdateService.new(portable, current_user, data).execute end |
#transform(_context, data) ⇒ Object
17 18 19 20 21 |
# File 'lib/bulk_imports/groups/pipelines/namespace_settings_pipeline.rb', line 17 def transform(_context, data) return unless data data.first.symbolize_keys.slice(*allowed_attributes) end |