|
|
@ -52,7 +52,7 @@ impl<'a> fmt::Display for AcmeUser<'a> { |
|
|
|
|
|
|
|
pub fn new<'a, S: Into<Cow<'a, str>>, C: CommandRunner, P: 'a + Deref<Target=str>>(command_runner: &'a C, cert: P, user_name: S) -> Box<Symbol + 'a> { // impl trait
|
|
|
|
let user_name_cow = user_name.into();
|
|
|
|
let account_key_file: PathBuf = ["home", user_name_cow.borrow(), "account.key"].iter().collect();
|
|
|
|
let account_key_file: PathBuf = ["/home", user_name_cow.borrow(), "account.key"].iter().collect();
|
|
|
|
Box::new(List::new(vec![
|
|
|
|
Box::new(AcmeAccountKey::new(account_key_file.clone().into(), command_runner)),
|
|
|
|
Box::new(Owner::new(account_key_file.to_string_lossy().into_owned(), user_name_cow.clone(), command_runner)),
|
|
|
|