diff --git a/Formula/twilio.rb b/Formula/twilio.rb index 4e29a3d..3edb71e 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.5.0/twilio-v5.5.0.tar.gz" - version "5.5.0" - sha256 "6ee0cf7ba4d3fc739e1bc35518860a8a74fd66465ba8003fd97bcff24883584c" + url "https://twilio-cli-prod.s3.amazonaws.com/twilio-v5.6.0/twilio-v5.6.0.tar.gz" + version "5.6.0" + sha256 "5c48d48397b52b6e70993551973624cd997ea2270aecd39544b46cb7faea9bec" depends_on "node" def install diff --git a/Formula/twilio@5.5.0.rb b/Formula/twilio@5.5.0.rb new file mode 100644 index 0000000..22f8d06 --- /dev/null +++ b/Formula/twilio@5.5.0.rb @@ -0,0 +1,21 @@ +require "language/node" + +class TwilioAT550 < 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.5.0/twilio-v5.5.0.tar.gz" + version "5.5.0" + sha256 "6ee0cf7ba4d3fc739e1bc35518860a8a74fd66465ba8003fd97bcff24883584c" + 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