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-07-30 00:28:10 +00:00
|
|
|
url "https://github.com/JFrogDev/jfrog-cli-go/archive/1.4.0.tar.gz"
|
|
|
|
sha256 "c303147e7286f719e958a68d816cd455919b79bf312ac9cc8f32f9c0f1403ce4"
|
2016-03-16 19:47:07 +00:00
|
|
|
|
2016-03-17 17:35:33 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-07-30 00:35:03 +00:00
|
|
|
sha256 "4487b0dfa48bd935119220f482ac0a6d87aa562bfe023b76a1938de0b6c9257a" => :el_capitan
|
|
|
|
sha256 "9408e4220650360ae9d7dea4c4b1ac377befc72d615f758ff15542da70efefd7" => :yosemite
|
|
|
|
sha256 "06abf34e20b3f719143181f1f775f4ab1d42a71a6754591f0f43a495f276e1bc" => :mavericks
|
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
|