From 5d6a72241c7a0ddb3515b7419e82690c61444948 Mon Sep 17 00:00:00 2001 From: twilio-dx Date: Wed, 19 Oct 2022 21:54:10 +0000 Subject: [PATCH] Release 5.2.0 --- Formula/twilio.rb | 6 +++--- Formula/twilio@5.1.0.rb | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 Formula/twilio@5.1.0.rb diff --git a/Formula/twilio.rb b/Formula/twilio.rb index da1ca54..20cf1c8 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.1.0/twilio-v5.1.0.tar.gz" - version "5.1.0" - sha256 "6e6ae7f37471b0a17fc30b079e1d757551aafe41eeeb19dc51f9b59135ba51e2" + url "https://twilio-cli-prod.s3.amazonaws.com/twilio-v5.2.0/twilio-v5.2.0.tar.gz" + version "5.2.0" + sha256 "63343880d2b9fd341c8b0c58b790d3fd93058382f0413c4f5a341e0c79139368" depends_on "node" def install diff --git a/Formula/twilio@5.1.0.rb b/Formula/twilio@5.1.0.rb new file mode 100644 index 0000000..54502ec --- /dev/null +++ b/Formula/twilio@5.1.0.rb @@ -0,0 +1,21 @@ +require "language/node" + +class TwilioAT510 < 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.1.0/twilio-v5.1.0.tar.gz" + version "5.1.0" + sha256 "6e6ae7f37471b0a17fc30b079e1d757551aafe41eeeb19dc51f9b59135ba51e2" + 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