-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathred-cli.rb
More file actions
49 lines (43 loc) · 1.49 KB
/
red-cli.rb
File metadata and controls
49 lines (43 loc) · 1.49 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class RedCli < Formula
desc "Redmine CLI"
homepage "https://github.com/mrjefflarry/redmine-cli"
version "0.1.10"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/MrJeffLarry/redmine-cli/releases/download/v0.1.10/red-cli_0.1.10_darwin_amd64.tar.gz"
sha256 "a9784dde19be4a4d42bd2b28003659cd1ec2f3b7565967ee0f39d4680126fea8"
def install
bin.install "red-cli"
end
end
if Hardware::CPU.arm?
url "https://github.com/MrJeffLarry/redmine-cli/releases/download/v0.1.10/red-cli_0.1.10_darwin_arm64.tar.gz"
sha256 "6d4dd39598c60dba82a743318421ede49380c1d2d6dad3c0d9bfd65c22133e56"
def install
bin.install "red-cli"
end
end
end
on_linux do
if Hardware::CPU.intel? and Hardware::CPU.is_64_bit?
url "https://github.com/MrJeffLarry/redmine-cli/releases/download/v0.1.10/red-cli_0.1.10_linux_amd64.tar.gz"
sha256 "9d8b7650e69b7ee328f274c1276d6147e12fc7347d2ac4000771ac41d3f9c3d4"
def install
bin.install "red-cli"
end
end
if Hardware::CPU.arm? and Hardware::CPU.is_64_bit?
url "https://github.com/MrJeffLarry/redmine-cli/releases/download/v0.1.10/red-cli_0.1.10_linux_arm64.tar.gz"
sha256 "3e74d59dc6b4e3d8e3f461fc15d857f4194f1aa41a911d15cab4183538143bc6"
def install
bin.install "red-cli"
end
end
end
test do
system "#{bin}/red-cli -v"
end
end