2019-07-12 14:09:44 +00:00
|
|
|
require "language/node"
|
|
|
|
|
|
|
|
class AwsCdk < Formula
|
|
|
|
desc "AWS Cloud Development Kit - framework for defining AWS infra as code"
|
|
|
|
homepage "https://github.com/aws/aws-cdk"
|
2019-10-01 17:44:02 +00:00
|
|
|
url "https://registry.npmjs.org/aws-cdk/-/aws-cdk-1.10.1.tgz"
|
|
|
|
sha256 "d348cc9650744de205aef72348009c7c87ad70d84fbb15516cb531a62e10e743"
|
2019-07-12 14:09:44 +00:00
|
|
|
|
2019-09-23 14:16:24 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2019-10-02 01:12:08 +00:00
|
|
|
sha256 "b7eae59f56fc0cca3e957a68cd98b44e79deefdba48505c6a93707983924f546" => :catalina
|
|
|
|
sha256 "2e5f01a43a191518334f873801a7c6a4049b4882080afbae1b969a3bd64996f2" => :mojave
|
|
|
|
sha256 "92089915fb857e667f96e9ac3303dd306dc7148330c67f3c5658613490a38a2b" => :high_sierra
|
2019-09-23 14:16:24 +00:00
|
|
|
end
|
|
|
|
|
2019-07-12 14:09:44 +00:00
|
|
|
depends_on "node"
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
|
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
mkdir "testapp"
|
|
|
|
cd testpath/"testapp"
|
|
|
|
shell_output("#{bin}/cdk init app --language=javascript")
|
|
|
|
list = shell_output("#{bin}/cdk list")
|
|
|
|
cdkversion = shell_output("#{bin}/cdk --version")
|
|
|
|
assert_match "TestappStack", list
|
|
|
|
assert_match version.to_s, cdkversion
|
|
|
|
end
|
|
|
|
end
|