class Pod::Generator::Acknowledgements
Public Instance Methods
license_text(spec)
click to toggle source
# File lib/cocoapods-lhj-bin/native/acknowledgements.rb, line 6 def license_text(spec) return nil unless spec.license text = spec.license[:text] unless text if license_file = spec.license[:file] license_path = file_accessor(spec).root + license_file if File.exist?(license_path) text = IO.read(license_path) else # UI.warn "Unable to read the license file `#{license_file}` " \ # "for the spec `#{spec}`" end elsif license_file = file_accessor(spec).license text = IO.read(license_file) end end text end