From 247a617abfd5e253ecc448ea0ca90ba085621aaf Mon Sep 17 00:00:00 2001 From: twilio-dx Date: Fri, 15 Nov 2024 08:02:23 +0000 Subject: [PATCH] Release 5.22.6 --- Formula/twilio.rb | 6 +++--- Formula/twilio@5.22.5.rb | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 Formula/twilio@5.22.5.rb diff --git a/Formula/twilio.rb b/Formula/twilio.rb index f17b551..9de5fb3 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.5/twilio-v5.22.5.tar.gz" - version "5.22.5" - sha256 "97b85e9e42bf9e2716f8f497b305bf5b25d0462873c638c54cdaf49968a703dc" + url "https://twilio-cli-prod.s3.amazonaws.com/twilio-v5.22.6/twilio-v5.22.6.tar.gz" + version "5.22.6" + sha256 "341fd432d5bc4816ade8b3db7951d55abcc36028f82d0349f1129e5f3504e429" depends_on "node@18" def install diff --git a/Formula/twilio@5.22.5.rb b/Formula/twilio@5.22.5.rb new file mode 100644 index 0000000..16671d1 --- /dev/null +++ b/Formula/twilio@5.22.5.rb @@ -0,0 +1,22 @@ +require "language/node" + +class TwilioAT5225 < 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.5/twilio-v5.22.5.tar.gz" + version "5.22.5" + sha256 "97b85e9e42bf9e2716f8f497b305bf5b25d0462873c638c54cdaf49968a703dc" + 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