diff --git a/Formula/twilio.rb b/Formula/twilio.rb index 680520d..78d6f38 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.16.3/twilio-v5.16.3.tar.gz" - version "5.16.3" - sha256 "94e13f36138d31dd7d208e3f5a4b72eadb82c55affedffc26afb94040d203e32" + url "https://twilio-cli-prod.s3.amazonaws.com/twilio-v5.17.0/twilio-v5.17.0.tar.gz" + version "5.17.0" + sha256 "05fb4efb10f5f0db15382716e00bba0b480c43bd2933a79b001a4910af5b69c1" depends_on "node" def install diff --git a/Formula/twilio@5.16.3.rb b/Formula/twilio@5.16.3.rb new file mode 100644 index 0000000..ccd247f --- /dev/null +++ b/Formula/twilio@5.16.3.rb @@ -0,0 +1,21 @@ +require "language/node" + +class TwilioAT5163 < 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.16.3/twilio-v5.16.3.tar.gz" + version "5.16.3" + sha256 "94e13f36138d31dd7d208e3f5a4b72eadb82c55affedffc26afb94040d203e32" + 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