Sha256: 05fb37f311acbb5aa553e7f8aae2dbd4f97a42af3c8ac431183e5ea688f3908e
Contents?: true
Size: 869 Bytes
Versions: 1
Compression:
Stored size: 869 Bytes
Contents
require 'pod_builder/core' module PodBuilder module Command class SyncPodfile def self.call(options) Configuration.check_inited PodBuilder::prepare_basepath install_update_repo = options[:update_repos] || true installer, analyzer = Analyze.installer_at(PodBuilder::basepath, install_update_repo) all_buildable_items = Analyze.podfile_items(installer, analyzer) Dir.chdir(PodBuilder::project_path) previous_podfile_content = File.read("Podfile") Podfile::write_prebuilt(all_buildable_items, analyzer) updated_podfile_content = File.read("Podfile") Licenses::write([], all_buildable_items) if previous_podfile_content != updated_podfile_content system("pod install") end return true end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pod-builder-0.2.8 | lib/pod_builder/command/sync_podfile.rb |