From 870a3baa999ccf2df220f10fd5d4fa6d88e06544 Mon Sep 17 00:00:00 2001 From: twilio-dx Date: Thu, 17 Oct 2024 16:46:29 +0000 Subject: [PATCH] Release 5.22.4 --- Formula/twilio.rb | 6 +++--- Formula/twilio@5.22.3.rb | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 Formula/twilio@5.22.3.rb diff --git a/Formula/twilio.rb b/Formula/twilio.rb index bc91d95..78fb5f0 100644 --- a/Formula/twilio.rb +++ b/Formula/twilio.rb @@ -3,9 +3,9 @@ class Twilio < Formula desc "unleash the power of Twilio from your command prompt" homepage "https://github.com/twilio/twilio-cli" - url "https://twilio-cli-prod.s3.amazonaws.com/twilio-v5.22.3/twilio-v5.22.3.tar.gz" - version "5.22.3" - sha256 "35943f3e2a54071c4bd0fdc49469f6f535aa4e44e6687869d35aac70b27acd64" + url "https://twilio-cli-prod.s3.amazonaws.com/twilio-v5.22.4/twilio-v5.22.4.tar.gz" + version "5.22.4" + sha256 "fe287e4b54339a82f86789010c31f2f5cdc1842eb98dda6f47350230aa5bcc77" depends_on "node@18" def install diff --git a/Formula/twilio@5.22.3.rb b/Formula/twilio@5.22.3.rb new file mode 100644 index 0000000..69dd9d2 --- /dev/null +++ b/Formula/twilio@5.22.3.rb @@ -0,0 +1,22 @@ +require "language/node" + +class TwilioAT5223 < Formula + desc "unleash the power of Twilio from your command prompt" + homepage "https://github.com/twilio/twilio-cli" + url "https://twilio-cli-prod.s3.amazonaws.com/twilio-v5.22.3/twilio-v5.22.3.tar.gz" + version "5.22.3" + sha256 "35943f3e2a54071c4bd0fdc49469f6f535aa4e44e6687869d35aac70b27acd64" + depends_on "node@18" + + def install + inreplace "bin/twilio", /^CLIENT_HOME=/, "export TWILIO_OCLIF_CLIENT_HOME=#{lib/"client"}\nCLIENT_HOME=" + libexec.install Dir["*"] + (bin/"twilio").write_env_script libexec/"bin/twilio", PATH: "#{Formula["node@18"].opt_bin}:$PATH" + end + + def post_install + node = Formula["node@18"].opt_bin/"node" + pid = spawn("#{node} #{libexec}/welcome.js") + Process.wait pid + end +end