aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/sshrc.rb
blob: d345402f0b48abf0bbae41491d1f804d39c15a46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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

  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