Class: LgPodPlugin::Concurrency
- Inherits:
-
Object
- Object
- LgPodPlugin::Concurrency
- Defined in:
- lib/lg_pod_plugin/installer/concurrency.rb
Class Method Summary collapse
Class Method Details
.async_download_pods(installers) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/lg_pod_plugin/installer/concurrency.rb', line 9 def self.async_download_pods(installers) return if installers.empty? json_text = installers.map(&:download_params).uniq.to_json arvg = LUtils.encrypt json_text, "AZMpxzVxzbo3sFDLRZMpxzVxzbo3sFDZ" return unless arvg && !arvg.empty? pwd = Pathname.new(File.dirname(__FILE__)).realpath FileUtils.chdir pwd system("./PodDownload #{arvg}") installers.each(&:copy_file_to_caches) end |