class Object

Public Instance Methods

name_for_url(url) click to toggle source

@param [String] url The URL of the RSYNC repository

@return [String] a name for the repository

For now, this uses the host and the last component of the URL as the name So spec@my.server.com:/home/spec will return my-server-com-spec

# File lib/cocoapods_plugin.rb, line 43
def name_for_url(url)
    host, path = url.split(":")
    path = path.split("/").last
    return path.gsub(".", "-").downcase
end