Class: PrelandsRails::UpdateSimpleSource::ValidateZipContent

Inherits:
Object
  • Object
show all
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

#call

Instance Method Details

#actObject



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