2017-03-10 10:46:22 +00:00
|
|
|
class Ctop < Formula
|
|
|
|
desc "Top-like interface for container metrics"
|
|
|
|
homepage "https://bcicen.github.io/ctop/"
|
2017-06-15 04:05:16 +00:00
|
|
|
url "https://github.com/bcicen/ctop/archive/v0.6.0.tar.gz"
|
|
|
|
sha256 "659c87de3d1c4b90d6b481c096d50d799deaf0f591b430606b6f2295862bcbc0"
|
2017-03-10 10:46:22 +00:00
|
|
|
|
2017-03-15 02:13:30 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2017-06-15 04:24:09 +00:00
|
|
|
sha256 "2ac847bd4659f31f4d3685cb9d1b95ade335c600f0fe1850662bf177fa07fe51" => :sierra
|
|
|
|
sha256 "6fba466a0a4ca79c719c9a638920186ec1e68a27bed351285bdd7c118b8ebeab" => :el_capitan
|
|
|
|
sha256 "f0c5a1a1e1cc7d60314a4f276eb976ff9669ea1a2dfa8dce9d6fea0f0ab08bf7" => :yosemite
|
2017-03-15 02:13:30 +00:00
|
|
|
end
|
|
|
|
|
2017-03-10 10:46:22 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
depends_on "glide" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
ENV["GLIDE_HOME"] = HOMEBREW_CACHE/"glide_home/#{name}"
|
|
|
|
dir = buildpath/"src/github.com/bcicen/ctop"
|
|
|
|
dir.install Dir["*"]
|
|
|
|
cd dir do
|
|
|
|
system "glide", "install"
|
2017-03-21 00:06:16 +00:00
|
|
|
system "make", "build"
|
|
|
|
bin.install "ctop"
|
2017-03-10 10:46:22 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/ctop", "-v"
|
|
|
|
end
|
|
|
|
end
|