git_app {webfakes} | R Documentation |
Web app that acts as a git http server
Description
It is useful for tests that need an HTTP git server.
Usage
git_app(
git_root,
git_cmd = "git",
git_timeout = as.difftime(1, units = "mins"),
filter = TRUE,
cleanup = TRUE
)
Arguments
git_root |
Path to the root of the directory tree to be served. |
git_cmd |
Command to call, by default it is |
git_timeout |
A |
filter |
Whether to support the |
cleanup |
Whether to clean up |
Examples
dir.create(tmp <- tempfile())
setwd(tmp)
system("git clone --bare https://github.com/cran/crayon")
system("git clone --bare https://github.com/cran/glue")
app <- git_app(tmp)
git <- new_app_process(app)
system(paste("git ls-remote", git$url("/crayon")))
[Package webfakes version 1.3.1 Index]