Module: CocoaPodsAmicable::InstallerMixin

Included in:
Pod::Installer
Defined in:
lib/cocoapods_amicable.rb

Instance Method Summary collapse

Instance Method Details

#write_lockfilesObject



49
50
51
52
53
54
55
56
57
58
59
# File 'lib/cocoapods_amicable.rb', line 49

def write_lockfiles
  super
  return unless podfile.plugins.key?('cocoapods-amicable')
  return unless checksum = podfile.checksum
  return unless podfile_path = podfile.defined_in_file
  checksum_path = sandbox.root + 'Podfile.sha1'

  Pod::UI.message "- Writing Podfile checksum in #{Pod::UI.path checksum_path}" do
    checksum_path.open('w') { |f| f << checksum << '  ' << podfile_path.basename.to_s << "\n" }
  end
end