Sha256: 00cddd02ca05f4d95309d2224a641ada15f7a0c6302d4a6ef717d268da4ed3fe
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 KB
Contents
require 'pod_builder/core' require 'cfpropertylist' module PodBuilder module Command class Update def self.call(options) Configuration.check_inited PodBuilder::prepare_basepath info = PodBuilder::Info.generate_info() swift_version = PodBuilder::system_swift_version pods_to_update = [] info.each do |pod_name, info| if info.dig(:restore_info, :version) != info.dig(:prebuilt_info, :version) pods_to_update.append(pod_name) end if (prebuilt_swift_version = info.dig(:prebuilt_info, :swift_version)) && prebuilt_swift_version != swift_version pods_to_update.append(pod_name) end end unless pods_to_update.count > 0 puts "Frameworks in sync!\n".green return 0 end if options.has_key?(:dry_run) puts "`#{pods_to_update.join("`, `")}` need to be rebuilt!\n".red return -2 end ARGV.clear pods_to_update.each { |x| ARGV << x } options[:auto_resolve_dependencies] = true return PodBuilder::Command::Build.call(options) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pod-builder-0.7.0 | lib/pod_builder/command/update.rb |
pod-builder-0.6.0 | lib/pod_builder/command/update.rb |