-
Notifications
You must be signed in to change notification settings - Fork 165
Expand file tree
/
Copy pathmongodb-database-tools.rb
More file actions
29 lines (25 loc) · 993 Bytes
/
mongodb-database-tools.rb
File metadata and controls
29 lines (25 loc) · 993 Bytes
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
class MongodbDatabaseTools < Formula
desc "This package contains standard utilities for interacting with MongoDB."
homepage "https://www.mongodb.com/"
# frozen_string_literal: true
if Hardware::CPU.intel?
url "https://fastdl.mongodb.org/tools/db/mongodb-database-tools-macos-x86_64-100.7.2.zip"
sha256 "cb92b689f04e4d4fd24ff9e340fecaf329fdf333b1219bcf9949bbdc592e3f30"
else
url "https://fastdl.mongodb.org/tools/db/mongodb-database-tools-macos-arm64-100.7.2.zip"
sha256 "ab4799c2748b0620715a608a9f1bfe1b0b52ab157e40bc0d4d87469be55297dc"
end
def install
prefix.install Dir["*"]
end
test do
system "#{bin}/bsondump", "--version"
system "#{bin}/mongoimport", "--version"
system "#{bin}/mongoexport", "--version"
system "#{bin}/mongodump", "--version"
system "#{bin}/mongorestore", "--version"
system "#{bin}/mongostat", "--version"
system "#{bin}/mongofiles", "--version"
system "#{bin}/mongotop", "--version"
end
end