homebrew-core/Formula/fleetctl.rb
2016-09-08 13:51:53 -04:00

26 lines
839 B
Ruby

class Fleetctl < Formula
desc "Distributed init system"
homepage "https://github.com/coreos/fleet"
url "https://github.com/coreos/fleet/archive/v0.11.8.tar.gz"
sha256 "22f2f40c1c2938504b31e9dbb54eb6eb54569458a4dffe5e0020e917a5e1f66f"
head "https://github.com/coreos/fleet.git"
bottle do
cellar :any_skip_relocation
sha256 "9972537338178f9cf3b1a16d947cd2ca77b3226688c18bdc43e8b269e139bde2" => :el_capitan
sha256 "945e9eb7fc85dcbbf11840f9085dfcb01834af14bfc45be0a4f480205f6077a1" => :yosemite
sha256 "11d48264d9e7987defd5f06462601261a6b861e666597d49db90ef4977529cf7" => :mavericks
end
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
system "./build"
bin.install "bin/fleetctl"
end
test do
assert_match version.to_s, shell_output("#{bin}/fleetctl -version")
end
end