pub async fn generate_all_templates(
		&self,
		secrets: &Secrets,
		sender: &Sender<Message>,
	) -> Result<()> {
		for (tmpl, conf) in self.iter() {
			if conf
				.secrets
				.iter()
				.map(|(path, _)| secrets.get(path).is_some())
				.all(|o| o)
			{
				sender.send(Message::GenerateTemplate(tmpl.clone())).await?;
			} else {
				log::warn!("skipping template \"{}\" due to undefined secrets", tmpl);
			}
		}
		Ok(())
	}
/// (re)generate all templates that have all secrets defined
(re)generate all templates that have all secrets defined
( re ) generate all templates that have all secrets defined
pub async fn generate_all_templates(
		&self,
		secrets: &Secrets,
		sender: &Sender<Message>,
	) -> Result<()> {
		for (tmpl, conf) in self.iter() {
			if conf
				.secrets
				.iter()
				.map(|(path, _)| secrets.get(path).is_some())
				.all(|o| o)
			{
				sender.send(Message::GenerateTemplate(tmpl.clone())).await?;
			} else {
				log::warn!("skipping template \"{}\" due to undefined secrets", tmpl);
			}
		}
		Ok(())
	}
pub async fn generate_all_templates ( & self , secrets : & Secrets , sender : & Sender < Message > , ) -> Result < ( ) > { for ( tmpl , conf ) in self . iter ( ) { if conf . secrets . iter ( ) . map ( | ( path , _ ) | secrets . get ( path ) . is_some ( ) ) . all ( | o | o ) { sender . send ( Message :: GenerateTemplate ( tmpl . clone ( ) ) ) . await ? ; } else { log :: warn ! ( " \" \" " tmpl ) ; } } Ok ( ( ) ) }
(re)generate all templates that have all secrets defined
( re ) generate all templates that have all secrets defined
&self
secrets
&Secrets
sender
&Sender<Message>
&self
secrets
&Secrets
sender
&Sender<Message>