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