29 lines
995 B
Ruby
29 lines
995 B
Ruby
require "language/node"
|
|
|
|
class Cdk8s < Formula
|
|
desc "Define k8s native apps and abstractions using object-oriented programming"
|
|
homepage "https://github.com/awslabs/cdk8s"
|
|
url "https://registry.npmjs.org/cdk8s-cli/-/cdk8s-cli-0.26.0.tgz"
|
|
sha256 "d4cd0eca893011420765bea1aed6a198a1f21b09d9650223dac33c17ed5eb4fa"
|
|
license "Apache-2.0"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "a6a3d58777381571fbabf4c023cb13da0145f1e77e58c39b50bc90616755578d" => :catalina
|
|
sha256 "945c71f494fcba0afecf91172181f826d4bb311256a7999b8912098d835f5e7f" => :mojave
|
|
sha256 "51fc6cfa21ea4d2f42a93de0908f12a3fea0f3cc3dea4bc83e663c4854a9a440" => :high_sierra
|
|
end
|
|
|
|
depends_on "node"
|
|
|
|
def install
|
|
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/cdk8s", "import", "k8s", "-l", "python"
|
|
assert_predicate testpath/"imports/k8s", :exist?, "cdk8s import did not work"
|
|
end
|
|
end
|