2016-02-04 10:22:36 +00:00
|
|
|
class Assh < Formula
|
|
|
|
desc "Advanced SSH config - Regex, aliases, gateways, includes and dynamic hosts"
|
|
|
|
homepage "https://github.com/moul/advanced-ssh-config"
|
2016-08-04 12:58:05 +00:00
|
|
|
url "https://github.com/moul/advanced-ssh-config/archive/v2.4.1.tar.gz"
|
|
|
|
sha256 "8867df447e654dae384cf598a81eb6be57a49082449ef4387f33725bb216853c"
|
2016-02-04 10:22:36 +00:00
|
|
|
head "https://github.com/moul/advanced-ssh-config.git"
|
|
|
|
|
2016-02-04 15:18:59 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-09-27 18:27:03 +00:00
|
|
|
sha256 "28e49700c458e4c8df4e9342a927bc1cbc09877cf762a07d4ee7893b1c47393d" => :sierra
|
2016-08-04 13:14:59 +00:00
|
|
|
sha256 "f2a3fa0bc38c3ddc7cf442fbd4114bbc49a4753bbe9963502b46be0825212f19" => :el_capitan
|
|
|
|
sha256 "75876951c5bc5706898141f4591fdb1f807ddd6849ae1bd2e75dc3dcdc0baa13" => :yosemite
|
|
|
|
sha256 "88a5f8d738264b099333ec4e4fdbcbdf5aada82a3b788a5086b825769036fa23" => :mavericks
|
2016-02-04 15:18:59 +00:00
|
|
|
end
|
|
|
|
|
2016-02-04 10:22:36 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
(buildpath/"src/github.com/moul/advanced-ssh-config").install Dir["*"]
|
2016-06-22 17:32:09 +00:00
|
|
|
cd "src/github.com/moul/advanced-ssh-config/cmd/assh" do
|
|
|
|
system "go", "build", "-o", bin/"assh"
|
2016-08-04 12:58:05 +00:00
|
|
|
prefix.install_metafiles
|
2016-06-22 17:32:09 +00:00
|
|
|
end
|
2016-02-04 10:22:36 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2016-06-22 17:32:09 +00:00
|
|
|
assert_match version.to_s, shell_output("#{bin}/assh --version")
|
2016-02-04 10:22:36 +00:00
|
|
|
end
|
|
|
|
end
|