-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsgr-binary.rb
More file actions
24 lines (19 loc) · 825 Bytes
/
sgr-binary.rb
File metadata and controls
24 lines (19 loc) · 825 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
class SgrBinary < Formula
desc "Command-line client binary tap for Splitgraph, a version control system for data"
homepage "https://www.splitgraph.com/docs/sgr-advanced/getting-started/introduction"
license "Apache-2.0"
on_macos do
url "https://github.com/splitgraph/sgr/releases/download/v0.3.12/sgr-osx-x86_64.tgz"
sha256 "0f1f7fb5168e332152ffd327476e93cf465de5f04d4b243cfc177c65b9416cc5"
def install
bin.install Dir["*"]
end
end
test do
sgr_status = shell_output("#{bin}/sgr cloud login --username homebrewtest --password correcthorsebatterystaple")
expected_output = <<~EOS
error: splitgraph.exceptions.AuthAPIError: {"error_code":"INVALID_CREDENTIALS","error":"Invalid username or password"}
EOS
assert_equal expected_output, sgr_status
end
end