guess_name(url)
private
Hide source
# File railties/lib/rails/commands/plugin.rb, line 262 def guess_name(url) @name = File.basename(url) if @name == 'trunk' || @name.empty? @name = File.basename(File.dirname(url)) end @name.gsub!(/\.git$/, '') if @name =~ /\.git$/ end