Module: CocoaPodsAmicable::InstallerMixin

Defined in:
lib/cocoapods_amicable.rb

Instance Method Summary collapse

Instance Method Details

#write_lockfilesObject


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

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