Skip to content

Commit

Permalink
Add devspace 6.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanBrushett committed Nov 25, 2022
1 parent 66c6d00 commit 89c399b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions devspace.rb
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

0 comments on commit 89c399b

Please sign in to comment.