homebrew-core/Formula/devspace.rb
2019-11-28 14:28:56 -05:00

37 lines
1.2 KiB
Ruby

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 => "v4.3.1",
:revision => "ce8745f1f65a2a8d2efa4791b0be15e081f60337"
bottle do
cellar :any_skip_relocation
sha256 "f8a87ba1b21488ef77dc80734732e12de934ea42043da67cd40c6d06edca227e" => :catalina
sha256 "a26eb10464e370259ddd8056e97616ba3d80a1d055cea30f1158a58bcc35bdb2" => :mojave
sha256 "80eeb389ea7fe64c549e9b6eda0492aff0a49ea5c4da9c15e09358a4869023d2" => :high_sierra
end
depends_on "go" => :build
depends_on "kubernetes-cli"
def install
ENV["GOPATH"] = buildpath
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