30 lines
1.5 KiB
Ruby
30 lines
1.5 KiB
Ruby
class Hostess < Formula
|
|
desc "Idempotent command-line utility for managing your /etc/hosts file"
|
|
homepage "https://github.com/cbednarski/hostess"
|
|
url "https://github.com/cbednarski/hostess/archive/v0.5.2.tar.gz"
|
|
sha256 "ece52d72e9e886e5cc877379b94c7d8fe6ba5e22ab823ef41b66015e5326da87"
|
|
license "MIT"
|
|
head "https://github.com/cbednarski/hostess.git"
|
|
|
|
bottle do
|
|
rebuild 1
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "277bc64d736ab7413d771e469943d1037b196e6b3aafd987a5c09602ada6b499"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "4272e75f8cba2d02e038dca00f7620a70ca396f3486aaf57a6a9fde77645c562"
|
|
sha256 cellar: :any_skip_relocation, monterey: "02d6c4ebd1fb5d414bde215becf8c8c69c1a7b7d9561ca19c270f3c2da2e904b"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "addb5bc6b7ff84ad6d2a33f2e0c46298f16865473ad82a32c02434def068c26b"
|
|
sha256 cellar: :any_skip_relocation, catalina: "9386f4841bb16ea44d5131b0a360138a3d33d7595e85d0baba3b9546762d7ae6"
|
|
sha256 cellar: :any_skip_relocation, mojave: "90e6b36f4131f2e8a914cd81e6a17e59075e734fa83b583654e178c6e7e65aa3"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "c0b57a734d8f4d98281726dfa821ff8b2dac02cfdfcd2349000257bdaf614cd6"
|
|
end
|
|
|
|
depends_on "go" => :build
|
|
|
|
def install
|
|
system "go", "build", *std_go_args, "-ldflags", "-s -w -X main.version=#{version}"
|
|
end
|
|
|
|
test do
|
|
assert_match "localhost", shell_output("#{bin}/hostess ls 2>&1")
|
|
end
|
|
end
|