diff --git a/Formula/twilio.rb b/Formula/twilio.rb index 83dc9a1..0cc315f 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-dev.s3.amazonaws.com/twilio-v6.0.0/twilio-v6.0.0.tar.gz" - version "6.0.0" - sha256 "8ca6eed331e4ae622cd7a2b6e24ba35cf8ca8bf4bb6d0a3bc3f1a4674e884fd5" + url "https://twilio-cli-dev.s3.amazonaws.com/twilio-v6.0.1/twilio-v6.0.1.tar.gz" + version "6.0.1" + sha256 "61307aed1a8c89c7ca0cd68ebecb0fe3f9cd87302699d3b216596056893fced6" depends_on "node" def install diff --git a/Formula/twilio@6.0.0.rb b/Formula/twilio@6.0.0.rb new file mode 100644 index 0000000..5c14580 --- /dev/null +++ b/Formula/twilio@6.0.0.rb @@ -0,0 +1,21 @@ +require "language/node" + +class TwilioAT600 < Formula + desc "unleash the power of Twilio from your command prompt" + homepage "https://github.com/twilio/twilio-cli" + url "https://twilio-cli-dev.s3.amazonaws.com/twilio-v6.0.0/twilio-v6.0.0.tar.gz" + version "6.0.0" + sha256 "8ca6eed331e4ae622cd7a2b6e24ba35cf8ca8bf4bb6d0a3bc3f1a4674e884fd5" + 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