lib/rubigen/base.rb
# Return the basename of the destination_root, 
# BUT, if it is trunk, tags, or branches, it continues to the
# parent path for the name
Return the basename of the destination_root,
BUT, if it is trunk, tags, or branches, it continues to the
parent path for the name
Return the basename of the destination_root BUT if it is trunk tags or branches it continues to the parent path for the name
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
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
Return the basename of the destination_root,
BUT, if it is trunk, tags, or branches, it continues to the
parent path for the name
Return the basename of the destination_root BUT if it is trunk tags or branches it continues to the parent path for the name