homebrew-core/Formula/jfrog-cli-go.rb
2017-07-11 10:04:09 -07:00

28 lines
1,005 B
Ruby

class JfrogCliGo < Formula
desc "Command-line interface for Jfrog Artifactory and Bintray"
homepage "https://github.com/JFrogDev/jfrog-cli-go"
url "https://github.com/JFrogDev/jfrog-cli-go/archive/1.10.0.tar.gz"
sha256 "6eaf2b54ebb454e01fb289afa09e8cf4cf1f074453033e46e53f1aca7a91af5a"
bottle do
cellar :any_skip_relocation
sha256 "1f118675b4bb243ae8c194e3d7830e60d10c4140a4e53a78dc8a0ac2b0294cc1" => :sierra
sha256 "12d701253940708e8c54236e62b6317df603d004839bb8b9c6a8932c01c2c8a3" => :el_capitan
sha256 "60eb2d1a6cfd44a4c9890c63171ad34a74723f7c5238dc4fbc673fbb2345a56d" => :yosemite
end
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/jfrogdev/jfrog-cli-go").install Dir["*"]
cd "src/github.com/jfrogdev/jfrog-cli-go" do
system "go", "build", "-o", bin/"jfrog", "jfrog/main.go"
prefix.install_metafiles
end
end
test do
assert_match version.to_s, shell_output("#{bin}/jfrog -v")
end
end