-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlola.rb
68 lines (67 loc) · 2.8 KB
/
lola.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# typed: false
# frozen_string_literal: true
require_relative "custom_download_strategy"
class Lola < Formula
desc "Local infra starting and provisioning CLI."
homepage "https://github.com/superbet-group/engprod.lola"
version "0.0.49"
on_macos do
on_intel do
url "https://github.com/superbet-group/engprod.lola/releases/download/v0.0.49/lola-macos-amd64.bundle.tar.gz", using: GitHubPrivateRepositoryReleaseDownloadStrategy
sha256 "2abe009707a2e06f74db00e8d438e0a60460ebb5887f6611285341d4774c9b3e"
def install
bin.install "lola/_internal/"
bin.install "lola/lola"
generate_completions_from_executable(bin/"lola", "--show-completion", shells: [:zsh])
end
end
on_arm do
url "https://github.com/superbet-group/engprod.lola/releases/download/v0.0.49/lola-macos-arm64.bundle.tar.gz", using: GitHubPrivateRepositoryReleaseDownloadStrategy
sha256 "7bbe4d62955dc0b46b9421d374eb9fbd380feed1a56e797357439ff3107e42ab"
def install
bin.install "lola/_internal/"
bin.install "lola/lola"
generate_completions_from_executable(bin/"lola", "--show-completion", shells: [:zsh])
end
end
end
on_linux do
on_intel do
url "https://github.com/superbet-group/engprod.lola/releases/download/v0.0.49/lola-ubuntu-amd64.bundle.tar.gz", using: GitHubPrivateRepositoryReleaseDownloadStrategy
sha256 "b2d4dd260604112d57cc27906d0cf3b34360f00eaaf3cfc4d4e293195d9fe8d5"
def install
bin.install "lola/_internal/"
bin.install "lola/lola"
generate_completions_from_executable(bin/"lola", "--show-completion", shells: [:bash])
end
end
on_arm do
url "https://github.com/superbet-group/engprod.lola/releases/download/v0.0.49/lola-alpine-arm64.bundle.tar.gz", using: GitHubPrivateRepositoryReleaseDownloadStrategy
sha256 "0b895794a60c0014819182517cccf5278fc62225fcedef3f9ad457aae729e905"
def install
bin.install "lola/_internal/"
bin.install "lola/lola"
generate_completions_from_executable(bin/"lola", "--show-completion", shells: [:bash])
end
end
end
def caveats
<<~EOS
Requirements:
* AMD64 Linux with GLIBC >= 2.29 (Ubuntu 20.04+) Mac or ARM Mac
* `docker`
* `docker-compose`
* * `docker-compose` -> https://github.com/docker/compose/releases
* `aws-cli` (for provisioning dynamodb tables)
* `engprod.local-development` cloned and path added to environment variable `LOCAL_DEV_PATH`
* https://github.com/superbet-group/engprod.local-development
```
git clone [email protected]:superbet-group/engprod.local-development.git
export LOCAL_DEV_PATH=/my/path/engprod.local-development # or add it to your .zshrc or .bashrc
```
EOS
end
test do
system "#{bin}/lola --help"
end
end