2016-03-16 19:47:07 +00:00
|
|
|
class JfrogCliGo < Formula
|
|
|
|
desc "command-line interface for Jfrog Artifactory and Bintray"
|
|
|
|
homepage "https://github.com/JFrogDev/jfrog-cli-go"
|
2016-10-04 09:04:16 +00:00
|
|
|
url "https://github.com/JFrogDev/jfrog-cli-go/archive/1.5.0.tar.gz"
|
|
|
|
sha256 "a82f25d0acdd3f7002603cbf0fb0140ebfc43a44cc55a846cf6aecd1a64c58ee"
|
2016-03-16 19:47:07 +00:00
|
|
|
|
2016-03-17 17:35:33 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-10-04 09:29:24 +00:00
|
|
|
sha256 "aa9649be99921715d09179083eefe55bdc8d1f12772cc2a30e5953326832c5ef" => :sierra
|
|
|
|
sha256 "3ad2ea145f3949675e4e79ffc9accff0ee90ba883fc7e8ac53741232461adc5c" => :el_capitan
|
|
|
|
sha256 "ea2bce23173b9b5dc5453ce2261c5bd50b6d454a50573ce3913792802bc7187a" => :yosemite
|
2016-03-17 17:35:33 +00:00
|
|
|
end
|
|
|
|
|
2016-03-16 19:47:07 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
2016-07-30 00:28:10 +00:00
|
|
|
(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
|
2016-03-16 19:47:07 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2016-07-30 00:28:10 +00:00
|
|
|
assert_match version.to_s, shell_output("#{bin}/jfrog -v")
|
2016-03-16 19:47:07 +00:00
|
|
|
end
|
|
|
|
end
|