Sha256: 84c35deef5a589a8d2d1f9f1046621d11fe11efaf80366b37b7b1745378d9135

Contents?: true

Size: 533 Bytes

Versions: 16

Compression:

Stored size: 533 Bytes

Contents

require 'json'
require 'aescrypt'

module  LgPodPlugin

  class Concurrency

    public
    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

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lg_pod_plugin-1.1.6.4 lib/lg_pod_plugin/installer/concurrency.rb
lg_pod_plugin-1.1.6.3 lib/lg_pod_plugin/installer/concurrency.rb
lg_pod_plugin-1.1.6.2 lib/lg_pod_plugin/installer/concurrency.rb
lg_pod_plugin-1.1.6.0 lib/lg_pod_plugin/installer/concurrency.rb
lg_pod_plugin-1.1.5.9 lib/lg_pod_plugin/installer/concurrency.rb
lg_pod_plugin-1.1.5.7 lib/lg_pod_plugin/installer/concurrency.rb
lg_pod_plugin-1.1.5.6 lib/lg_pod_plugin/installer/concurrency.rb
lg_pod_plugin-1.1.5.5 lib/lg_pod_plugin/installer/concurrency.rb
lg_pod_plugin-1.1.5.4 lib/lg_pod_plugin/installer/concurrency.rb
lg_pod_plugin-1.1.5.3 lib/lg_pod_plugin/installer/concurrency.rb
lg_pod_plugin-1.1.5.2 lib/lg_pod_plugin/installer/concurrency.rb
lg_pod_plugin-1.1.5.1 lib/lg_pod_plugin/installer/concurrency.rb
lg_pod_plugin-1.1.4.4 lib/lg_pod_plugin/installer/concurrency.rb
lg_pod_plugin-1.1.4.3 lib/lg_pod_plugin/installer/concurrency.rb
lg_pod_plugin-1.1.4.2 lib/lg_pod_plugin/installer/concurrency.rb
lg_pod_plugin-1.1.4 lib/lg_pod_plugin/installer/concurrency.rb