Class: PrelandsRails::CreateSimpleSource::DetectIncomingLocales
- Inherits:
-
Object
- Object
- PrelandsRails::CreateSimpleSource::DetectIncomingLocales
- Includes:
- Interactor, Interactor::Contracts, AbstractInteractor, Base
- Defined in:
- lib/prelands_rails/create_simple_source/detect_incoming_locales.rb
Overview
запоминаем, какие локали пришли в исходнике
Instance Method Summary collapse
Methods included from AbstractInteractor
Instance Method Details
#act ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/prelands_rails/create_simple_source/detect_incoming_locales.rb', line 22 def act context.incoming_locales = Zip::File.open(context.archive.tempfile) do |zipfile| zipfile.map do |file| file.name[NAME_RX] $1 end end.compact end |