-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmongo2dynamo.rb
More file actions
36 lines (32 loc) · 1.27 KB
/
mongo2dynamo.rb
File metadata and controls
36 lines (32 loc) · 1.27 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
class Mongo2dynamo < Formula
desc "CLI tool to migrate data from MongoDB to DynamoDB"
homepage "https://github.com/dutymate/mongo2dynamo"
version "1.15.0"
license "MIT"
on_macos do
if Hardware::CPU.intel? # darwin_amd64
url "https://github.com/dutymate/mongo2dynamo/releases/download/v1.15.0/mongo2dynamo_Darwin_x86_64.tar.gz"
sha256 "981b6be4e0abb352609a62abca96bc0ab411b990f494794dc83f0b230144572d"
end
if Hardware::CPU.arm? # darwin_arm64
url "https://github.com/dutymate/mongo2dynamo/releases/download/v1.15.0/mongo2dynamo_Darwin_arm64.tar.gz"
sha256 "42e82f1844aea15463f28376987d103512ef49ef51c7a3a18d48e099a39294c0"
end
end
on_linux do
if Hardware::CPU.intel? # linux_amd64
url "https://github.com/dutymate/mongo2dynamo/releases/download/v1.15.0/mongo2dynamo_Linux_x86_64.tar.gz"
sha256 "115b5efa609dfcff7ea4a4bdf76a7d8413e7a78c0268c642f7ae5a71732a450f"
end
if Hardware::CPU.arm? # linux_arm64
url "https://github.com/dutymate/mongo2dynamo/releases/download/v1.15.0/mongo2dynamo_Linux_arm64.tar.gz"
sha256 "f5638d27449f8c11b432c026107eb013a8a36ce10c428bd9e28b26cd58b841ae"
end
end
def install
bin.install "mongo2dynamo"
end
test do
system "#{bin}/mongo2dynamo", "version"
end
end