homebrew-core/Formula/sshrc.rb

24 lines
486 B
Ruby
Raw Normal View History

require "formula"
class Sshrc < Formula
homepage "https://github.com/Russell91/sshrc"
url "https://github.com/Russell91/sshrc/archive/0.4.tar.gz"
sha1 "9e9426323d6b2cb118275b2d5836510dbd87a75a"
def install
bin.install "sshrc"
end
2014-09-21 17:59:52 +00:00
test do
ENV["HOME"] = testpath
touch testpath/".sshrc"
(testpath/"ssh").write <<-EOS.undent
#!/bin/sh
true
EOS
chmod 0755, testpath/"ssh"
ENV.prepend_path "PATH", testpath
system "sshrc"
end
end