diff --git a/Formula/twilio.rb b/Formula/twilio.rb index 4a62043..8d3bcb7 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.13.0/twilio-v5.13.0.tar.gz" - version "5.13.0" - sha256 "aee08831848eb3549351dfc54dfaa2705bdcb165b30363063fbd3feabcff40b5" + url "https://twilio-cli-prod.s3.amazonaws.com/twilio-v5.14.0/twilio-v5.14.0.tar.gz" + version "5.14.0" + sha256 "c92f0f6327fe55a04bf6596377b2f1d06070cb806a02459828c7cd0eac70fdc3" depends_on "node" def install diff --git a/Formula/twilio@5.13.0.rb b/Formula/twilio@5.13.0.rb new file mode 100644 index 0000000..ca1fd68 --- /dev/null +++ b/Formula/twilio@5.13.0.rb @@ -0,0 +1,21 @@ +require "language/node" + +class TwilioAT5130 < 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.13.0/twilio-v5.13.0.tar.gz" + version "5.13.0" + sha256 "aee08831848eb3549351dfc54dfaa2705bdcb165b30363063fbd3feabcff40b5" + 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