|
|
@ -121,7 +121,7 @@ impl<D: Clone> ImplementationBuilder<Cert<D>> for DefaultBuilder { |
|
|
|
fn create(
|
|
|
|
resource: &Cert<D>,
|
|
|
|
target: &<Cert<D> as Resource>::Artifact,
|
|
|
|
(csr, root_cert, account_key, challenges_dir, user_name, _): <Self::Prerequisites as ToArtifact>::Artifact,
|
|
|
|
(csr, root_cert, account_key, challenges_dir, (user_name, _), _): <Self::Prerequisites as ToArtifact>::Artifact,
|
|
|
|
) -> Self::Implementation {
|
|
|
|
CertSymbol::new(
|
|
|
|
resource.0.clone(),
|
|
|
@ -552,13 +552,13 @@ impl<D: Clone> ImplementationBuilder<UserForDomain<D>> for DefaultBuilder { |
|
|
|
type Prerequisites = ();
|
|
|
|
fn prerequisites(_resource: &UserForDomain<D>) -> Self::Prerequisites {}
|
|
|
|
|
|
|
|
type Implementation = UserSymbol<Rc<str>, StdCommandRunner>;
|
|
|
|
type Implementation = UserSymbol<Rc<str>, Rc<Path>, StdCommandRunner>;
|
|
|
|
fn create(
|
|
|
|
_resource: &UserForDomain<D>,
|
|
|
|
(user_name, _home_path): &<UserForDomain<D> as Resource>::Artifact,
|
|
|
|
(user_name, home_path): &<UserForDomain<D> as Resource>::Artifact,
|
|
|
|
(): <Self::Prerequisites as ToArtifact>::Artifact,
|
|
|
|
) -> Self::Implementation {
|
|
|
|
UserSymbol::new(user_name.0.clone(), StdCommandRunner)
|
|
|
|
UserSymbol::new(user_name.0.clone(), home_path.into(), StdCommandRunner)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
@ -566,13 +566,13 @@ impl ImplementationBuilder<User> for DefaultBuilder { |
|
|
|
type Prerequisites = ();
|
|
|
|
fn prerequisites(_resource: &User) -> Self::Prerequisites {}
|
|
|
|
|
|
|
|
type Implementation = UserSymbol<Rc<str>, StdCommandRunner>;
|
|
|
|
type Implementation = UserSymbol<Rc<str>, Rc<Path>, StdCommandRunner>;
|
|
|
|
fn create(
|
|
|
|
resource: &User,
|
|
|
|
(): &<User as Resource>::Artifact,
|
|
|
|
home_path: &<User as Resource>::Artifact,
|
|
|
|
(): <Self::Prerequisites as ToArtifact>::Artifact,
|
|
|
|
) -> Self::Implementation {
|
|
|
|
UserSymbol::new(resource.0.clone(), StdCommandRunner)
|
|
|
|
UserSymbol::new(resource.0.clone(), home_path.into(), StdCommandRunner)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
@ -594,13 +594,13 @@ impl ImplementationBuilder<AcmeUser> for DefaultBuilder { |
|
|
|
type Prerequisites = ();
|
|
|
|
fn prerequisites(_resource: &AcmeUser) -> Self::Prerequisites {}
|
|
|
|
|
|
|
|
type Implementation = UserSymbol<Rc<str>, StdCommandRunner>;
|
|
|
|
type Implementation = UserSymbol<Rc<str>, Rc<Path>, StdCommandRunner>;
|
|
|
|
fn create(
|
|
|
|
_resource: &AcmeUser,
|
|
|
|
user_name: &<AcmeUser as Resource>::Artifact,
|
|
|
|
(user_name, home_path): &<AcmeUser as Resource>::Artifact,
|
|
|
|
(): <Self::Prerequisites as ToArtifact>::Artifact,
|
|
|
|
) -> Self::Implementation {
|
|
|
|
UserSymbol::new(user_name.0.clone(), StdCommandRunner)
|
|
|
|
UserSymbol::new(user_name.0.clone(), home_path.into(), StdCommandRunner)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
@ -617,7 +617,7 @@ impl ImplementationBuilder<AcmeChallengesDir> for DefaultBuilder { |
|
|
|
fn create(
|
|
|
|
_resource: &AcmeChallengesDir,
|
|
|
|
target: &<AcmeChallengesDir as Resource>::Artifact,
|
|
|
|
user_name: <Self::Prerequisites as ToArtifact>::Artifact,
|
|
|
|
(user_name, _): <Self::Prerequisites as ToArtifact>::Artifact,
|
|
|
|
) -> Self::Implementation {
|
|
|
|
(
|
|
|
|
DirSymbol::new(target.clone_rc()),
|
|
|
@ -658,7 +658,7 @@ impl ImplementationBuilder<AcmeAccountKey> for DefaultBuilder { |
|
|
|
fn create(
|
|
|
|
_resource: &AcmeAccountKey,
|
|
|
|
target: &<AcmeAccountKey as Resource>::Artifact,
|
|
|
|
user_name: <Self::Prerequisites as ToArtifact>::Artifact,
|
|
|
|
(user_name, _): <Self::Prerequisites as ToArtifact>::Artifact,
|
|
|
|
) -> Self::Implementation {
|
|
|
|
(
|
|
|
|
KeySymbol::new(StdCommandRunner, target.clone_rc()),
|
|
|
|