From e937645597499196ac5204f8071de425d6e146c9 Mon Sep 17 00:00:00 2001 From: twilio-dx Date: Thu, 23 Mar 2023 16:48:37 +0000 Subject: [PATCH] Release 5.5.0 --- Formula/twilio.rb | 6 +++--- Formula/twilio@5.4.2.rb | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 Formula/twilio@5.4.2.rb diff --git a/Formula/twilio.rb b/Formula/twilio.rb index 33d7018..4e29a3d 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.4.2/twilio-v5.4.2.tar.gz" - version "5.4.2" - sha256 "444e47ae6762f87d5a64d120a834e3df361f5162507ef9fcb2224c65ac1c337a" + url "https://twilio-cli-prod.s3.amazonaws.com/twilio-v5.5.0/twilio-v5.5.0.tar.gz" + version "5.5.0" + sha256 "6ee0cf7ba4d3fc739e1bc35518860a8a74fd66465ba8003fd97bcff24883584c" depends_on "node" def install diff --git a/Formula/twilio@5.4.2.rb b/Formula/twilio@5.4.2.rb new file mode 100644 index 0000000..1a09027 --- /dev/null +++ b/Formula/twilio@5.4.2.rb @@ -0,0 +1,21 @@ +require "language/node" + +class TwilioAT542 < 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.4.2/twilio-v5.4.2.tar.gz" + version "5.4.2" + sha256 "444e47ae6762f87d5a64d120a834e3df361f5162507ef9fcb2224c65ac1c337a" + 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