class Plugin
def guess_name(url)
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
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