-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathamper.rb
28 lines (24 loc) · 854 Bytes
/
amper.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class Amper < Formula
desc "A project configuration and build tool with a focus on the user experience and the IDE support"
homepage "https://github.com/JetBrains/amper/"
license "Apache-2.0"
url "https://packages.jetbrains.team/maven/p/amper/amper/org/jetbrains/amper/cli/0.5.0/cli-0.5.0-wrapper?download=true"
sha256 "629e72fb1c8f3afc161f9c16929c20e27e6bb623c3820755cb89fcd93b1b02d1"
version "0.5.0"
depends_on "kdoctor"
def install
libexec.install Dir["*"]
bin.install_symlink "#{libexec}/cli-0.5.0-wrapper" => "amper"
chmod "+x", "#{libexec}/cli-0.5.0-wrapper"
end
def caveats
<<~EOS
TODO temporary restriction: please run kdoctor manually after the installation
$ kdoctor
EOS
end
test do
output = shell_output("#{bin}/amper")
assert_includes output, "Amper project root"
end
end