Struct buildchain::Config [] [src]

pub struct Config {
    pub name: String,
    pub base: String,
    pub source: Source,
    pub commands: Vec<Vec<String>>,
}

A build configuration

Fields

The name of this build project

The LXC base to use

The source repository (git only, for now)

The commands to run that generate the build artifacts

Methods

impl Config
[src]

Run a build configuration

Return

An empty tuple on success

Errors

Errors that are encountered while running will be returned

Example

use buildchain::{Config, Location};
use std::collections::BTreeMap;

let config = Config {
    name: "test-config".to_string(),
    base: "ubuntu:16.04".to_string(),
    commands: vec![vec!["echo".to_string(), "hello".to_string()]],
    artifacts: None,
};
config.run(Location::Local, "tests/res/config/buildchain.out").unwrap();

Trait Implementations

impl Clone for Config
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Config
[src]

Formats the value using the given formatter.

impl Eq for Config
[src]

impl PartialEq for Config
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.