[][src]Struct rusty_ci::buildsystem::DefaultBuildSystem

pub struct DefaultBuildSystem;

This is a dummy struct, it just uses an empty impl for BuildSystem.

Methods

impl DefaultBuildSystem[src]

pub fn new() -> Self[src]

Trait Implementations

impl BuildSystem for DefaultBuildSystem[src]

fn preinstall(&mut self) -> Result<(), String>[src]

Preinstall is called by the install method unless it is overloaded. This is usefult for printing a warning message or prompting the user before installing the dependencies for rusty-ci Read more

fn install(&mut self) -> Result<(), String>[src]

This method installs rusty-ci's dependencies, python3 and buildbot.

fn prebuild(&mut self) -> Result<(), String>[src]

This method is similar to preinstall, but it is called by the build method instead of the install method Read more

fn build(
    &mut self,
    master: MasterConfig,
    workers: Vec<Worker>
) -> Result<(), String>
[src]

fn start(&mut self, workers: &Vec<Worker>) -> Result<(), String>[src]

This starts the master and the workers

fn start_master(&mut self) -> Result<(), String>[src]

This method is used by the start method to spin up the master

fn start_workers(&mut self, workers: &Vec<Worker>) -> Result<(), String>[src]

This method is used by the start method to spin up the workers

fn create_workers(&mut self, workers: &Vec<Worker>) -> Result<(), String>[src]

Creates each worker in its proper directory

fn write_worker_configs(&mut self, workers: &Vec<Worker>) -> Result<(), String>[src]

Writes the configuration buildbot.tac file for each worker

fn create_master(&mut self) -> Result<(), String>[src]

Creates the master in the master directory

fn write_master_config(&mut self, master: &MasterConfig) -> Result<(), String>[src]

Writes the master configuration file

fn install_python(&mut self) -> Result<(), String>[src]

This method installs Python. You probably do need to overload this, I dont know for sure if it completely works. The bash impl of the buildsystem is the most reliable for now. Read more

fn install_buildbot(&mut self) -> Result<(), String>[src]

This method installs buildbot. Again, you probably want to overload this because it does not use a Python virtual environment, or venv. The venv is important because it does not modify the system wide packages. Read more

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]