class SshCopyId < Formula desc "Add a public key to a remote machine's authorized_keys file" homepage "https://www.openssh.com/" url "https://www.mirrorservice.org/pub/OpenBSD/OpenSSH/portable/openssh-7.5p1.tar.gz" mirror "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.5p1.tar.gz" version "7.5p1" sha256 "9846e3c5fab9f0547400b4d2c017992f914222b3fd1f8eee6c7dc6bc5e59f9f0" head "https://github.com/openssh/openssh-portable.git" bottle :unneeded def install bin.install "contrib/ssh-copy-id" man1.install "contrib/ssh-copy-id.1" end test do output = shell_output("#{bin}/ssh-copy-id -h 2>&1", 1) assert_match "identity_file", output end end