From 621fa154cf3b6622845ac7332cd538a3da24ec78 Mon Sep 17 00:00:00 2001 From: twilio-dx Date: Thu, 5 May 2022 07:16:15 +0000 Subject: [PATCH] Release 3.4.0 --- Formula/twilio.rb | 6 +++--- Formula/twilio@3.3.2.rb | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 Formula/twilio@3.3.2.rb diff --git a/Formula/twilio.rb b/Formula/twilio.rb index 0f4b27e..837ccd4 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-v3.3.2/twilio-v3.3.2.tar.gz" - version "3.3.2" - sha256 "8e7a5080377cefbf1948a752fc83b6cdb2568400aad994620e183a981e8f26ba" + url "https://twilio-cli-prod.s3.amazonaws.com/twilio-v3.4.0/twilio-v3.4.0.tar.gz" + version "3.4.0" + sha256 "b5f7ef76820a41706e4d499b6e1d17f8abf3a3326ac957f055841c946a3ec788" depends_on "node" def install diff --git a/Formula/twilio@3.3.2.rb b/Formula/twilio@3.3.2.rb new file mode 100644 index 0000000..a7e96d0 --- /dev/null +++ b/Formula/twilio@3.3.2.rb @@ -0,0 +1,21 @@ +require "language/node" + +class TwilioAT332 < 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-v3.3.2/twilio-v3.3.2.tar.gz" + version "3.3.2" + sha256 "8e7a5080377cefbf1948a752fc83b6cdb2568400aad994620e183a981e8f26ba" + 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