# File lib/rubigen/base.rb, line 163 def base_name name = File.basename(destination_root) root = destination_root while %w[trunk branches tags].include? name root = File.expand_path(File.join(root, "..")) name = File.basename(root) end name end