1. 首页
  2. 数据库
  3. 其它
  4. ruby 小脚本搞定CVS服务器更换后checkout下来的工程迁移

ruby 小脚本搞定CVS服务器更换后checkout下来的工程迁移

上传者: 2021-01-30 00:14:36上传 PDF文件 22.74KB 热度 4次
def changeCVS(path) Dir.foreach(path) do |dir| if dir != “.” && dir != “..” absdir = path + “/” + dir if (File.directory? absdir) && (dir == “CVS”) cvs_root_file_name = absdir + “/Root” p cvs_root_file_name File.open(cvs_root_file_name,”w”) do |file| file.write(“:connection_type:user@ip:repository”)
下载地址
用户评论