aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ssh-copy-id.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/ssh-copy-id.rb')
-rw-r--r--Library/Formula/ssh-copy-id.rb20
1 files changed, 11 insertions, 9 deletions
diff --git a/Library/Formula/ssh-copy-id.rb b/Library/Formula/ssh-copy-id.rb
index 490f7262b..4f5acb0df 100644
--- a/Library/Formula/ssh-copy-id.rb
+++ b/Library/Formula/ssh-copy-id.rb
@@ -1,11 +1,9 @@
-require 'formula'
-
class SshCopyId < Formula
- homepage 'http://www.openssh.com/'
- url 'http://ftp.usa.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-6.7p1.tar.gz'
- mirror 'http://ftp3.usa.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-6.7p1.tar.gz'
- version '6.7p1'
- sha1 '14e5fbed710ade334d65925e080d1aaeb9c85bf6'
+ homepage "http://www.openssh.com/"
+ url "http://ftp.usa.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-6.7p1.tar.gz"
+ mirror "http://ftp3.usa.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-6.7p1.tar.gz"
+ version "6.7p1"
+ sha1 "14e5fbed710ade334d65925e080d1aaeb9c85bf6"
bottle do
cellar :any
@@ -15,7 +13,11 @@ class SshCopyId < Formula
end
def install
- bin.install 'contrib/ssh-copy-id'
- man1.install 'contrib/ssh-copy-id.1'
+ bin.install "contrib/ssh-copy-id"
+ man1.install "contrib/ssh-copy-id.1"
+ end
+
+ test do
+ shell_output bin/"ssh-copy-id -h", 1
end
end