Skip to content

Commit

Permalink
Merge pull request #175439 from razvanazamfirei/lando-cli-new-formula
Browse files Browse the repository at this point in the history
lando-cli 3.21.2 (new formula)
  • Loading branch information
BrewTestBot committed Jun 29, 2024
2 parents 6495bad + e77d72c commit 93fc78c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1288,6 +1288,7 @@ kwok
kyma-cli
kyverno
lacework-cli
lando-cli
languagetool
lanraragi
lastpass-cli
Expand Down
43 changes: 43 additions & 0 deletions Formula/l/lando-cli.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
require "language/node"

class LandoCli < Formula
include Language::Node::Shebang

desc "Cli part of Lando"
homepage "https://docs.lando.dev/cli"
url "https://github.com/lando/cli/archive/refs/tags/v3.21.2.tar.gz"
sha256 "2b930fa5c7cbe50396d147d3cf51f382e8a7312607f9dcefc04a4ad1399f4a46"
license "GPL-3.0-or-later"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "cf0b3e960e6648fbafa20d63292b7fd8ac29047cc987d41de56465656b605c20"
sha256 cellar: :any_skip_relocation, arm64_ventura: "cf0b3e960e6648fbafa20d63292b7fd8ac29047cc987d41de56465656b605c20"
sha256 cellar: :any_skip_relocation, arm64_monterey: "cf0b3e960e6648fbafa20d63292b7fd8ac29047cc987d41de56465656b605c20"
sha256 cellar: :any_skip_relocation, sonoma: "fe4ed9406dafdaaddf8f1843e64b6d6798b1c200abe3ab66d43ae2b3792d29a1"
sha256 cellar: :any_skip_relocation, ventura: "fe4ed9406dafdaaddf8f1843e64b6d6798b1c200abe3ab66d43ae2b3792d29a1"
sha256 cellar: :any_skip_relocation, monterey: "fe4ed9406dafdaaddf8f1843e64b6d6798b1c200abe3ab66d43ae2b3792d29a1"
sha256 cellar: :any_skip_relocation, x86_64_linux: "646af2fd4cb091ea4a49556b220b4350f0455088b13dfc408b845a7daf3444d0"
end

depends_on "node@18"

def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
# We have to replace the shebang in the main executable from "/usr/bin/env node"
rewrite_shebang detected_node_shebang, libexec/"lib/node_modules/@lando/cli/bin/lando"
bin.install_symlink Dir["#{libexec}/bin/*"]
system "#{bin}/lando", "config", "--channel=none"
end

def caveats
<<~EOS
To complete the installation:
lando setup
EOS
end

test do
output = shell_output("#{bin}/lando config --path proxyIp")
assert_match "127.0.0.1", output
end
end

0 comments on commit 93fc78c

Please sign in to comment.