deploy_rcpd

Function deploy_rcpd 

Source
pub async fn deploy_rcpd(
    session: &Arc<Session>,
    local_rcpd_path: &Path,
    version: &str,
    remote_host: &str,
) -> Result<String>
Expand description

Deploy rcpd binary to remote host

Transfers the local static rcpd binary to the remote host at ~/.cache/rcp/bin/rcpd-{version}, verifies the checksum, and returns the path to the deployed binary.

§Arguments

  • session - SSH session to the remote host
  • local_rcpd_path - Path to the local static rcpd binary to deploy
  • version - Semantic version string for the binary
  • remote_host - Hostname for logging/error messages

§Returns

The path to the deployed binary on the remote host

§Errors

Returns an error if:

  • Local binary cannot be read
  • Remote directory creation fails
  • Transfer fails
  • Checksum verification fails