2015-12-10 23:34:07 +00:00
|
|
|
class ArtifactoryCliGo < Formula
|
|
|
|
desc "Provides a command-line interface for Artifactory."
|
|
|
|
homepage "https://github.com/JFrogDev/artifactory-cli-go"
|
2016-01-06 12:49:15 +00:00
|
|
|
url "https://github.com/JFrogDev/artifactory-cli-go/archive/1.3.0.tar.gz"
|
|
|
|
sha256 "29ba6b4cc46456caad300500050548fc0ad157fde102059e0778f0d68a35f4ba"
|
2015-12-10 23:34:07 +00:00
|
|
|
|
2015-12-17 02:40:21 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-01-06 13:42:32 +00:00
|
|
|
sha256 "de6ce27454f9a6568bd850a17c3522dafbb61023a926baa8e7dc5dc7524ebb7a" => :el_capitan
|
|
|
|
sha256 "fdf4ca022e79f5c185a5e446ae0b3eadd010b269164ab62e3be253745d2bd696" => :yosemite
|
|
|
|
sha256 "c2c517183bf08206441c3a76acdf64b061b61ee5b131597fca5aaa62cd60e634" => :mavericks
|
2015-12-17 02:40:21 +00:00
|
|
|
end
|
|
|
|
|
2015-12-10 23:34:07 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
(buildpath/"src/github.com/JFrogDev/artifactory-cli-go/").install Dir["*"]
|
|
|
|
system "go", "build", "-o", "#{bin}/art", "-v", "github.com/JFrogDev/artifactory-cli-go/art/"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
actual = pipe_output("#{bin}/art upload")
|
|
|
|
expected = "The --url option is mandatory\n"
|
|
|
|
assert_equal expected, actual
|
|
|
|
end
|
|
|
|
end
|