Class: PrelandsRails::CreateSimpleSource::DetectIncomingLocales

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

#call

Instance Method Details

#actObject



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