33 lines
1.5 KiB
Ruby
33 lines
1.5 KiB
Ruby
require "language/node"
|
|
|
|
class CubejsCli < Formula
|
|
desc "Cube.js command-line interface"
|
|
homepage "https://cube.dev/"
|
|
url "https://registry.npmjs.org/cubejs-cli/-/cubejs-cli-0.31.34.tgz"
|
|
sha256 "31708bd0b1d0d7688c26cd94ee0f109d635dff9af5adbeb33b005bf9d49b8732"
|
|
license "Apache-2.0"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_ventura: "6443d37e9ff7edf4fb7003ade45ed0cd2f59ffb74a6d338b71696056cf725396"
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "6443d37e9ff7edf4fb7003ade45ed0cd2f59ffb74a6d338b71696056cf725396"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "6443d37e9ff7edf4fb7003ade45ed0cd2f59ffb74a6d338b71696056cf725396"
|
|
sha256 cellar: :any_skip_relocation, ventura: "fad13e0efe33c253ee9d60e91c4ea06d0c0d7f5503cafd6cb83ddecdf730d3e9"
|
|
sha256 cellar: :any_skip_relocation, monterey: "fad13e0efe33c253ee9d60e91c4ea06d0c0d7f5503cafd6cb83ddecdf730d3e9"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "fad13e0efe33c253ee9d60e91c4ea06d0c0d7f5503cafd6cb83ddecdf730d3e9"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "6443d37e9ff7edf4fb7003ade45ed0cd2f59ffb74a6d338b71696056cf725396"
|
|
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
|
|
assert_match version.to_s, shell_output("#{bin}/cubejs --version")
|
|
system "cubejs", "create", "hello-world", "-d", "postgres"
|
|
assert_predicate testpath/"hello-world/schema/Orders.js", :exist?
|
|
end
|
|
end
|