liftinstall/src/installer.rs

26 lines
630 B
Rust
Raw Normal View History

2018-01-27 04:27:41 +01:00
/// installer.rs
///
/// Contains the main installer structure, as well as high-level means of controlling it.
use config::Config;
/// The installer framework contains metadata about packages, what is installable, what isn't,
/// etc.
pub struct InstallerFramework {
config : Config
}
impl InstallerFramework {
/// Returns a copy of the configuration.
pub fn get_config(&self) -> Config {
self.config.clone()
}
/// Creates a new instance of the Installer Framework with a specified Config.
pub fn new(config : Config) -> Self {
InstallerFramework {
config
}
}
}