repo_tools:在Ruby应用程序中轻松管理克隆Git存储库

时间:2021-04-29 20:11:19
【文件属性】:
文件名称:repo_tools:在Ruby应用程序中轻松管理克隆Git存储库
文件大小:8KB
文件格式:ZIP
更新时间:2021-04-29 20:11:19
Ruby RepoTools RepoTools gem可用于将Git存储库克隆到本地应用程序中,并且仅当Git存储库位于源/主数据库之后时才重新克隆它。 用法 下面的代码将克隆frontend-generators在/root/path/tmp/test/frontend-generators目录: puller = RepoTools :: Puller . new ( "git@github.com:MrPowers/frontend-generators.git" , "/root/path" , "test" ) puller . clean_and_clone 如果源/主服务器保持不变,并且您再次运行#clean_and_clone ,则不会再次克隆该存储库(因为克隆是一项昂贵的操作)。 如果源/主服务器已更新,则该存储库将被重新克隆。 此代码将导致重新克隆存储库,例如: cd
【文件预览】:
repo_tools-master
----LICENSE.txt(1KB)
----lib()
--------repo_tools()
--------repo_tools.rb(148B)
--------tasks()
----Gemfile(95B)
----repo_tools.gemspec(1KB)
----spec()
--------puller_spec.rb(71B)
--------spec_helper.rb(80B)
--------git_status_checker_spec.rb(827B)
----Rakefile(203B)
----.travis.yml(76B)
----README.md(1KB)
----.rspec(31B)
----.gitignore(93B)
----bin()
--------console(335B)
--------setup(115B)

网友评论