Trait install_framework_core::interface::Installer[][src]

pub trait Installer: Send {
    fn init(&mut self, commands: &mut CommandQueue<InitCommand>);
fn get_components(&mut self, cache: &Path) -> Vec<Component>;
fn install_component(
        &mut self,
        component: &str,
        commands: &mut CommandQueue<InstallCommand>
    ); }

Required methods

fn init(&mut self, commands: &mut CommandQueue<InitCommand>)[src]

Executes before any other function in order to prepare the environment for subsequent component installs

Arguments

  • commands - the command queue to push commands into

fn get_components(&mut self, cache: &Path) -> Vec<Component>[src]

Returns all components this installer is able to install

Arguments

  • cache - access to the cache path

fn install_component(
    &mut self,
    component: &str,
    commands: &mut CommandQueue<InstallCommand>
)
[src]

Installs a given component

Arguments

  • component - component name
  • commands - the command queue to push commands into
Loading content...

Implementors

Loading content...