From 73b6d7827380822d23f32a2522e20cf9f5ecfbf7 Mon Sep 17 00:00:00 2001 From: twilio-dx Date: Thu, 23 Feb 2023 11:03:18 +0000 Subject: [PATCH] Release 5.4.1 --- Formula/twilio.rb | 6 +++--- Formula/twilio@5.4.0.rb | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 Formula/twilio@5.4.0.rb diff --git a/Formula/twilio.rb b/Formula/twilio.rb index 2ef945a..e571b88 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.0/twilio-v5.4.0.tar.gz" - version "5.4.0" - sha256 "7aa937059124db03c11dcf50118a09f60cdd56b61efc76b800c22ff35cee138a" + url "https://twilio-cli-prod.s3.amazonaws.com/twilio-v5.4.1/twilio-v5.4.1.tar.gz" + version "5.4.1" + sha256 "e0742a82591df4d0bfc59470fdd525b112482e7af31821962ca4df6e61225753" depends_on "node" def install diff --git a/Formula/twilio@5.4.0.rb b/Formula/twilio@5.4.0.rb new file mode 100644 index 0000000..9cf3b24 --- /dev/null +++ b/Formula/twilio@5.4.0.rb @@ -0,0 +1,21 @@ +require "language/node" + +class TwilioAT540 < 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.0/twilio-v5.4.0.tar.gz" + version "5.4.0" + sha256 "7aa937059124db03c11dcf50118a09f60cdd56b61efc76b800c22ff35cee138a" + 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