From 573f48275d4cd57296a20bed18bf50898085e085 Mon Sep 17 00:00:00 2001 From: twilio-dx Date: Mon, 26 Aug 2024 12:46:01 +0000 Subject: [PATCH] Release 5.21.2 --- Formula/twilio.rb | 6 +++--- Formula/twilio@5.21.1.rb | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 Formula/twilio@5.21.1.rb diff --git a/Formula/twilio.rb b/Formula/twilio.rb index d62d827..d2d31fc 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.21.1/twilio-v5.21.1.tar.gz" - version "5.21.1" - sha256 "b3c553c3ce58fef5f216fda024795fb370aa2f613011d3b233edd25a5c005971" + url "https://twilio-cli-prod.s3.amazonaws.com/twilio-v5.21.2/twilio-v5.21.2.tar.gz" + version "5.21.2" + sha256 "fa92b618a7e7f3209b46e3d293fd8bd7f0eac1c0d7666926141e3c291c0cf24c" depends_on "node@18" def install diff --git a/Formula/twilio@5.21.1.rb b/Formula/twilio@5.21.1.rb new file mode 100644 index 0000000..b64772f --- /dev/null +++ b/Formula/twilio@5.21.1.rb @@ -0,0 +1,22 @@ +require "language/node" + +class TwilioAT5211 < 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.21.1/twilio-v5.21.1.tar.gz" + version "5.21.1" + sha256 "b3c553c3ce58fef5f216fda024795fb370aa2f613011d3b233edd25a5c005971" + 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