24 lines
823 B
Ruby
24 lines
823 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-9.3.0-distribution.zip"
|
|
sha256 "5d6c3fd45b9ea25c8826c0d3dbeae51ab914ffae2fc38325b8ef15d3f36fbb83"
|
|
|
|
bottle :unneeded
|
|
|
|
depends_on "openjdk"
|
|
|
|
def install
|
|
inreplace "acli.sh" do |s|
|
|
s.sub! "`find \"$directory/lib\" -name acli-*.jar`", "'#{share}/lib/acli-#{version}.jar'"
|
|
s.sub! "java", "'#{Formula["openjdk"].opt_bin}/java'"
|
|
end
|
|
bin.install "acli.sh" => "acli"
|
|
share.install "lib", "license"
|
|
end
|
|
|
|
test do
|
|
assert_match "Welcome to the Bob Swift Atlassian CLI", shell_output("#{bin}/acli --help 2>&1 | head")
|
|
end
|
|
end
|