-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwrangler-cli.rb
23 lines (19 loc) · 859 Bytes
/
wrangler-cli.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class WranglerCli < Formula
desc "Wrangle your cloudflare workers"
homepage "https://workers.cloudflare.com/"
url "https://github.com/cloudflare/wrangler/releases/download/v1.10.3/wrangler-v1.10.3-x86_64-apple-darwin.tar.gz"
sha256 "5d59a54c7751a96bd8dd638241812612438a838080101e4688a3b1e7583e2958"
head do
url "https://github.com/cloudflare/wrangler/releases/download/v1.11.0-rc.0/wrangler-v1.11.0-rc.0-x86_64-apple-darwin.tar.gz"
sha256 "8b94218a21cf010e112c15b34f3c0057f75f69f045082e2a707058c26c231230"
end
def install
bin.install "wrangler"
end
test do
# TODO: Find a better test that won't break on every release.
version_output = shell_output("#{bin}/wrangler --version")
assert_includes version_output, "1.10.3" unless build.head?
assert_includes version_output, "1.11.0-rc.0" if build.head?
end
end