diff --git a/Formula/twilio.rb b/Formula/twilio.rb index ff1b93a..eee4223 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-v3.3.0/twilio-v3.3.0.tar.gz" - version "3.3.0" - sha256 "a75bd698b80a8eabdcdc8f511abb0e77b91ce1b025f82de4d741eaa25203f48d" + url "https://twilio-cli-prod.s3.amazonaws.com/twilio-v3.3.1/twilio-v3.3.1.tar.gz" + version "3.3.1" + sha256 "c9cc4067e2fb20b876aa559e540489912b3d3e17b4d9ae9c28c8d315ee6374b3" depends_on "node" def install diff --git a/Formula/twilio@3.3.0.rb b/Formula/twilio@3.3.0.rb new file mode 100644 index 0000000..f038363 --- /dev/null +++ b/Formula/twilio@3.3.0.rb @@ -0,0 +1,21 @@ +require "language/node" + +class TwilioAT330 < 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-v3.3.0/twilio-v3.3.0.tar.gz" + version "3.3.0" + sha256 "a75bd698b80a8eabdcdc8f511abb0e77b91ce1b025f82de4d741eaa25203f48d" + 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