homebrew-core/Formula/atlassian-cli.rb
2017-08-30 08:53:03 -07:00

26 lines
826 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-6.9.0-distribution.zip"
sha256 "56994ddee849a5819cfe1e9a4f5f295296689cd361a347f6efac4dabf5c2a706"
bottle :unneeded
depends_on :java => "1.8+"
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