[−][src]Struct rusty_ci::buildsystem::DefaultBuildSystem
This is a dummy struct, it just uses an empty impl for BuildSystem.
Methods
impl DefaultBuildSystem
[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]
&mut self,
master: MasterConfig,
workers: Vec<Worker>
) -> Result<(), String>
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
impl Sync for DefaultBuildSystem
impl Send for DefaultBuildSystem
impl Unpin for DefaultBuildSystem
impl RefUnwindSafe for DefaultBuildSystem
impl UnwindSafe for DefaultBuildSystem
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,