-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
aws-ssm-tunnel (new formula) #221863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-ssm-tunnel (new formula) #221863
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
class AwsSsmTunnel < Formula | ||
desc "CLI tool to tunnel into RDS & ElastiCache over SSM-managed EC2 instances" | ||
homepage "https://github.com/ilkerispir/aws-ssm-tunnel" | ||
url "https://github.com/ilkerispir/aws-ssm-tunnel/archive/refs/tags/v0.0.1.tar.gz" | ||
sha256 "ba83bec1427a9a4997e3a4ff155138ed07ee7312d3a0b43075ca1dc092bfc4cf" | ||
license "Apache-2.0" | ||
|
||
depends_on "go" => :build | ||
|
||
def install | ||
system "go", "build", *std_go_args(output: bin/"aws-ssm-tunnel") | ||
end | ||
|
||
test do | ||
output = shell_output("#{bin}/aws-ssm-tunnel --help") | ||
assert_match "Usage", output | ||
Comment on lines
+15
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need a test that exercises the some of the functionality of the app. Version checks or usage checks (foo --version or foo --help) are not sufficient, as explained in the formula cookbook. In most cases, a good test would involve running a simple test case: run #{bin}/foo input.txt.
Some advice for specific cases:
|
||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the naming not correct if you leave out the
output:
arg?