-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66c6d00
commit 89c399b
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
class Devspace < Formula | ||
desc "CLI helps develop/deploy/debug apps with Docker and k8s" | ||
homepage "https://devspace.sh/" | ||
url "https://github.com/loft-sh/devspace.git", | ||
tag: "v6.1.1", | ||
revision: "9cd3723afbf14d488a208b0dfb301f9670a51c92" | ||
license "Apache-2.0" | ||
|
||
depends_on "go" => :build | ||
depends_on "kubernetes-cli" | ||
|
||
conflicts_with "homebrew/core/devspace" | ||
|
||
def install | ||
ldflags = %W[ | ||
-s -w | ||
-X main.commitHash=#{Utils.git_head} | ||
-X main.version=#{version} | ||
] | ||
system "go", "build", *std_go_args(ldflags: ldflags) | ||
end | ||
|
||
test do | ||
help_output = "DevSpace accelerates developing, deploying and debugging applications with Docker and Kubernetes." | ||
assert_match help_output, shell_output("#{bin}/devspace --help") | ||
|
||
init_help_output = "Initializes a new devspace project" | ||
assert_match init_help_output, shell_output("#{bin}/devspace init --help") | ||
end | ||
end |