lib/cocoapods/config.rb
def podfile_path
      unless @podfile_path
        path = installation_root + 'Podfile.yaml'
        path = installation_root + 'Podfile' unless path.exist?
        @podfile_path = path
      end
      @podfile_path
    end
# Returns the path of the Podfile.
#
# @note The Podfile can be named either `CocoaPods.podfile` or `Podfile`.
#       The first is preferred as it allows to specify an OS X UTI.
#
Returns the path of the Podfile.
Returns the path of the Podfile .
def podfile_path
      unless @podfile_path
        path = installation_root + 'Podfile.yaml'
        path = installation_root + 'Podfile' unless path.exist?
        @podfile_path = path
      end
      @podfile_path
    end
def podfile_path unless @podfile_path path = installation_root + 'Podfile.yaml' path = installation_root + 'Podfile' unless path . exist? @podfile_path = path end @podfile_path end
Returns the path of the Podfile.
Returns the path of the Podfile .
note
The Podfile can be named either `CocoaPods.podfile` or `Podfile`. The first is preferred as it allows to specify an OS X UTI.
The Podfile can be named either ` CocoaPods . podfile ` or ` Podfile ` . The first is preferred as it allows to specify an OS X UTI .