homebrew-core/Formula/atlassian-cli.rb
Tomasz Pajor 86f16b2859 atlassian-cli: rename from stash-cli
Closes #6191.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
2016-10-24 11:19:17 +02:00

27 lines
844 B
Ruby

class AtlassianCli < Formula
desc "Command-line interface clients for Atlassian products"
homepage "https://bobswift.atlassian.net/wiki/pages/viewpage.action?pageId=1966101"
url "https://bobswift.atlassian.net/wiki/download/attachments/16285777/atlassian-cli-5.7.0-distribution.zip"
version "5.7.0"
sha256 "7d1af9dd7b5fe0fa35ba13f24d5d98fa49e0146bbae2181c43d845f3bf93ad2f"
bottle :unneeded
depends_on :java => "1.7+"
def install
Dir.glob("*.sh") do |f|
cmd = File.basename(f, ".sh")
inreplace cmd + ".sh", "`dirname $0`", share
bin.install cmd + ".sh" => cmd
end
share.install "lib", "license"
end
test do
Dir.glob(bin/"*") do |f|
cmd = File.basename(f, ".sh")
assert_match "Usage:", shell_output(bin/"#{cmd} --help 2>&1 | head") unless cmd == "atlassian"
end
end
end