-
Notifications
You must be signed in to change notification settings - Fork 0
/
red-cli.rb
41 lines (34 loc) · 1.13 KB
/
red-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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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.4"
on_macos do
url "https://github.com/MrJeffLarry/redmine-cli/releases/download/v0.1.4/red-cli_0.1.4_darwin_all.tar.gz"
sha256 "e5da2817d86bf64571f9c254596a03f97cab99b4dc54987d7d52e8d0a747296c"
def install
bin.install "red-cli"
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/MrJeffLarry/redmine-cli/releases/download/v0.1.4/red-cli_0.1.4_linux_amd64.tar.gz"
sha256 "0c034159c1f9434d94107ba148c659ebbe646960c42021d85207a8469a950d48"
def install
bin.install "red-cli"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/MrJeffLarry/redmine-cli/releases/download/v0.1.4/red-cli_0.1.4_linux_arm64.tar.gz"
sha256 "245bbd53d62493ee8ae95dbb7ba2fa18b1498d80249b43c166a5e37dc5a84779"
def install
bin.install "red-cli"
end
end
end
test do
system "#{bin}/red-cli -v"
end
end