Class: PrelandsRails::UpdateSimpleSource::ValidateZipContent
- Inherits:
-
Object
- Object
- PrelandsRails::UpdateSimpleSource::ValidateZipContent
- Includes:
- Interactor, Interactor::Contracts, AbstractInteractor
- Defined in:
- lib/prelands_rails/update_simple_source/validate_zip_content.rb
Instance Method Summary collapse
Methods included from AbstractInteractor
Instance Method Details
#act ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/prelands_rails/update_simple_source/validate_zip_content.rb', line 19 def act if context.files_content result = ::PrelandsRails::CreateSimpleSource::ValidateZipContent.call context if result.success? context.warnings = result.warnings else fail!(errors: result.errors) end end end |