Struct puppetfile::Module
[−]
[src]
pub struct Module { pub name: String, pub info: Vec<ModuleInfo>, }
The representation of a puppet module
Fields
name | Name of the module |
info | More information about the module |
Methods
impl Module
fn forge_version(&self, forge_url: &str) -> Result<Version, PuppetfileError>
The current version of the module returned from the forge API
fn version_url(&self, forge_url: &str) -> Result<String, PuppetfileError>
Builds the URL for the forge API for fetching the version
fn user_name_pair(&self) -> Option<(&str, &str)>
Returns user and module name from 'user/mod_name'
fn version(&self) -> Option<&VersionReq>
Returns the version if specified