23 lines
697 B
Ruby
23 lines
697 B
Ruby
class SshCopyId < Formula
|
|
desc "Add a public key to a remote machine's authorized_keys file"
|
|
homepage "http://www.openssh.com/"
|
|
url "http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.2p2.tar.gz"
|
|
mirror "https://www.mirrorservice.org/pub/OpenBSD/OpenSSH/portable/openssh-7.2p2.tar.gz"
|
|
version "7.2p2"
|
|
sha256 "a72781d1a043876a224ff1b0032daa4094d87565a68528759c1c2cab5482548c"
|
|
|
|
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
|