chore: rename with_socket to with_ssh_agent
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-12-30 21:59:21 +01:00
parent 9ee64020fe
commit 8248b61545
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -27,13 +27,13 @@ impl DaggerMiddleware for SshAgent {
} }
pub trait SshAgentExt { pub trait SshAgentExt {
fn with_socket(&mut self, socket: dagger_sdk::Socket) -> &mut Self { fn with_ssh_agent(&mut self, socket: dagger_sdk::Socket) -> &mut Self {
self self
} }
} }
impl SshAgentExt for RustService { impl SshAgentExt for RustService {
fn with_socket(&mut self, socket: dagger_sdk::Socket) -> &mut Self { fn with_ssh_agent(&mut self, socket: dagger_sdk::Socket) -> &mut Self {
self.with_stage(super::RustServiceStage::BeforeDeps(Arc::new( self.with_stage(super::RustServiceStage::BeforeDeps(Arc::new(
SshAgent::new(socket.clone()), SshAgent::new(socket.clone()),
))) )))
@ -44,7 +44,7 @@ impl SshAgentExt for RustService {
} }
impl SshAgentExt for LeptosService { impl SshAgentExt for LeptosService {
fn with_socket(&mut self, socket: dagger_sdk::Socket) -> &mut Self { fn with_ssh_agent(&mut self, socket: dagger_sdk::Socket) -> &mut Self {
self.with_stage(super::RustServiceStage::BeforeDeps(Arc::new( self.with_stage(super::RustServiceStage::BeforeDeps(Arc::new(
SshAgent::new(socket.clone()), SshAgent::new(socket.clone()),
))) )))