Module: Pod::PodGenerate::Patches::ProjectWriterPatch::IncrementalSave
- Defined in:
- lib/cocoapods-podgenerate/patches/project_writer_patch.rb
Instance Method Summary collapse
- #initialize(sandbox, projects, pod_target_installation_results, installation_options) ⇒ Object
- #save_projects(projects) ⇒ Object
Instance Method Details
#initialize(sandbox, projects, pod_target_installation_results, installation_options) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/cocoapods-podgenerate/patches/project_writer_patch.rb', line 19 def initialize(sandbox, projects, pod_target_installation_results, ) super @project_digests = {} @projects = projects @sort_needed = {} compute_initial_digests end |
#save_projects(projects) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/cocoapods-podgenerate/patches/project_writer_patch.rb', line 27 def save_projects(projects) projects.each do |project| if project_unchanged?(project) Pod::UI. "- Skipping unchanged project #{UI.path project.path}" next end project.sort(:groups_position => :below) if needs_sort?(project) Pod::UI. "- Writing Xcode project file to #{UI.path project.path}" do project.save end update_digest(project) end end |