#git-clone #automation #automaat #processor #repository #workspace #url

automaat-processor-git-clone

Git Clone processor for the Automaat automation utility

1 unstable release

0.1.0 Jun 9, 2019

#8 in #automaat


Used in automaat-server

MIT/Apache

21KB
241 lines

Automaat Processor: Git Clone

🚧 Work In Progress 🚧


lib.rs:

An Automaat processor to clone a Git repository.

Using this crate in your Automaat workflow allows you to clone an external repository into the Context workspace.

Plaintext username/password authentication is supported for private repositories.

Examples

Clone the Automaat repository into the workspace of the created context, and assert that the repository is in the correct location.

Since this repository is open to the public, no credentials are required.

The workspace is a temporary directory created on your file system. See the Context documentation for more details.

use automaat_core::{Context, Processor};
use automaat_processor_git_clone::GitClone;
use url::Url;

let context = Context::new()?;
let repo_url = Url::parse("https://github.com/blendle/automaat")?;

let processor = GitClone {
  url: repo_url,
  username: None,
  password: None,
  path: Some("automaat-repo".to_owned())
};

processor.run(&context)?;

assert!(context.workspace_path().join("automaat-repo/README.md").exists());

Package Features

  • juniper – creates a set of objects to be used in GraphQL-based requests/responses.

Dependencies

~11–21MB
~394K SLoC