File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ class E1s < Formula
2+ desc "TUI for managing AWS ECS, inspired by k9s"
3+ homepage "https://github.com/keidarcy/e1s"
4+ url "https://github.com/keidarcy/e1s/archive/refs/tags/v1.0.51.tar.gz"
5+ sha256 "c0f368ca487386b9105b675aff066eb9d1f03a31e1edcd2986bccb687c07058e"
6+ license "MIT"
7+ head "https://github.com/keidarcy/e1s.git" , branch : "master"
8+
9+ livecheck do
10+ url :stable
11+ strategy :github_latest
12+ end
13+
14+ depends_on "go" => :build
15+
16+ def install
17+ system "go" , "build" , *std_go_args ( ldflags : "-s -w" ) , "./cmd/e1s"
18+ end
19+
20+ test do
21+ ENV [ "AWS_REGION" ] = "us-east-1"
22+ ENV [ "AWS_ACCESS_KEY_ID" ] = "test"
23+ ENV [ "AWS_SECRET_ACCESS_KEY" ] = "test"
24+
25+ assert_match version . to_s , shell_output ( "#{ bin } /e1s --version" )
26+
27+ output = shell_output ( "#{ bin } /e1s --json --region us-east-1 2>&1" , 1 )
28+ assert_match "e1s failed to start, please check your aws cli credential and permission" , output
29+ end
30+ end
You can’t perform that action at this time.
0 commit comments