-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreminders-exporter.rb
50 lines (41 loc) · 1.38 KB
/
reminders-exporter.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
42
43
44
45
46
47
48
49
50
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class RemindersExporter < Formula
desc "This app is a daemon that converts Reminders.app data into metrics in Prometheus Exporter format and provides them.
"
homepage "https://github.com/legnoh/reminders-exporter"
version "1.0.1"
license "MIT"
depends_on "reminders-cli" if OS.mac?
depends_on :macos
if Hardware::CPU.intel?
url "https://github.com/legnoh/reminders-exporter/releases/download/1.0.1/reminders-exporter_1.0.1_darwin_amd64.tar.gz"
sha256 "3adbfd2cbc92e99786301ae0abc94fbb037552ea039e5e53e2d106da73830939"
def install
bin.install "reminders-exporter"
end
end
if Hardware::CPU.arm?
url "https://github.com/legnoh/reminders-exporter/releases/download/1.0.1/reminders-exporter_1.0.1_darwin_arm64.tar.gz"
sha256 "f19b10b1231d4ed3fd1aaedcbb2cabd5e8f4656afc1b3760eea4b1a23e3d2ec0"
def install
bin.install "reminders-exporter"
end
end
def caveats
<<~EOS
Please check usage at README:
https://github.com/legnoh/reminders-exporter/blob/main/README.md
EOS
end
service do
run [opt_bin/"reminders-exporter", "serve"]
keep_alive true
log_path var/"log/reminders-exporter.log"
error_log_path var/"log/reminders-exporter.log"
end
test do
system "#{bin}/reminders-exporter --help"
end
end