Class: LokaliseManager::TaskDefinitions::Exporter
- Defined in:
- lib/lokalise_manager/task_definitions/exporter.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#export! ⇒ Array
Performs translation file export to Lokalise and returns an array of queued processes.
Methods inherited from Base
#api_client, #initialize, #reset_api_client!
Constructor Details
This class inherits a constructor from LokaliseManager::TaskDefinitions::Base
Instance Method Details
#export! ⇒ Array
Performs translation file export to Lokalise and returns an array of queued processes
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/lokalise_manager/task_definitions/exporter.rb', line 11 def export! queued_processes = [] each_file do |full_path, relative_path| queued_processes << do_upload(full_path, relative_path) rescue StandardError => e raise e.class, "Error while trying to upload #{full_path}: #{e.message}" end $stdout.print 'Task complete!' queued_processes end |