devspace 3.5.8 (new formula)
Closes #40831. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
7ae18db209
commit
0fe6101b89
1 changed files with 31 additions and 0 deletions
31
Formula/devspace.rb
Normal file
31
Formula/devspace.rb
Normal file
|
@ -0,0 +1,31 @@
|
|||
class Devspace < Formula
|
||||
desc "CLI helps develop/deploy/debug apps with Docker and k8s"
|
||||
homepage "https://devspace.cloud/docs"
|
||||
url "https://github.com/devspace-cloud/devspace.git",
|
||||
:tag => "v3.5.8",
|
||||
:revision => "3efff768ae61fffbfb224a51406ba54e6b670a02"
|
||||
|
||||
depends_on "go" => :build
|
||||
depends_on "kubernetes-cli"
|
||||
|
||||
def install
|
||||
ENV["GOPATH"] = buildpath
|
||||
ENV["GO111MODULE"] = "on"
|
||||
|
||||
dir = buildpath/"src/github.com/devspace-cloud/devspace"
|
||||
dir.install buildpath.children
|
||||
|
||||
cd dir do
|
||||
system "go", "build", "-o", bin/"devspace"
|
||||
prefix.install_metafiles
|
||||
end
|
||||
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
|
Loading…
Reference in a new issue