From f915de72e55622a633e930c64c15eb87c7629ac3 Mon Sep 17 00:00:00 2001 From: twilio-dx Date: Tue, 27 Feb 2024 18:14:44 +0000 Subject: [PATCH] Release 5.19.0 --- Formula/twilio.rb | 6 +++--- Formula/twilio@5.18.0.rb | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 Formula/twilio@5.18.0.rb diff --git a/Formula/twilio.rb b/Formula/twilio.rb index 1b71bb9..1675d31 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.18.0/twilio-v5.18.0.tar.gz" - version "5.18.0" - sha256 "da46c4cece63a318b94a2c8f121234a456928134db6d713f9f29a5f8d9f8f669" + url "https://twilio-cli-prod.s3.amazonaws.com/twilio-v5.19.0/twilio-v5.19.0.tar.gz" + version "5.19.0" + sha256 "d21968905fe54eee3a39e4c17d045e446f5a47bd413d4e96d78aa4d55a72260d" depends_on "node" def install diff --git a/Formula/twilio@5.18.0.rb b/Formula/twilio@5.18.0.rb new file mode 100644 index 0000000..e5c9a2d --- /dev/null +++ b/Formula/twilio@5.18.0.rb @@ -0,0 +1,21 @@ +require "language/node" + +class TwilioAT5180 < 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.18.0/twilio-v5.18.0.tar.gz" + version "5.18.0" + sha256 "da46c4cece63a318b94a2c8f121234a456928134db6d713f9f29a5f8d9f8f669" + depends_on "node" + + def install + inreplace "bin/twilio", /^CLIENT_HOME=/, "export TWILIO_OCLIF_CLIENT_HOME=#{lib/"client"}\nCLIENT_HOME=" + libexec.install Dir["*"] + bin.install_symlink libexec/"bin/twilio" + end + + def post_install + pid = spawn("node #{libexec}/welcome.js") + Process.wait pid + end +end