diff --git a/Formula/twiliorc.rb b/Formula/twiliorc.rb index a498b5f..793be8a 100644 --- a/Formula/twiliorc.rb +++ b/Formula/twiliorc.rb @@ -3,8 +3,8 @@ class Twiliorc < 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/channels/rc/twilio-v1.0.5-rc.1100/twilio-v1.0.5-rc.1100.tar.gz" - version "1.0.5-rc.11" + url "https://twilio-cli-prod.s3.amazonaws.com/channels/rc/twilio-v1.0.5-rc.12/twilio-v1.0.5-rc.12.tar.gz" + version "1.0.5-rc.12" sha256 "dummysha" depends_on "node" diff --git a/Formula/twiliorc@1.0.5-rc.11.rb b/Formula/twiliorc@1.0.5-rc.11.rb new file mode 100644 index 0000000..6e2170d --- /dev/null +++ b/Formula/twiliorc@1.0.5-rc.11.rb @@ -0,0 +1,21 @@ +require "language/node" + +class TwiliorcAT105Rc11 < 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/channels/rc/twilio-v1.0.5-rc.1100/twilio-v1.0.5-rc.1100.tar.gz" + version "1.0.5-rc.11" + sha256 "dummysha" + 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 \ No newline at end of file