diff --git a/Formula/twiliodraft.rb b/Formula/twiliodraft.rb index 1a2be69..f343521 100644 --- a/Formula/twiliodraft.rb +++ b/Formula/twiliodraft.rb @@ -3,9 +3,9 @@ class Twiliodraft < 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/draft/twilio-v2.35.0-draft.1/twilio-v2.35.0-draft.1.tar.gz" - version "2.35.0-draft.1" - sha256 "bb8252cca1cce30051da332fc46141938c6339b14d9e1d3164669a68854e72d3" + url "https://twilio-cli-prod.s3.amazonaws.com/channels/draft/twilio-v3.1.0-draft.2/twilio-v3.1.0-draft.2.tar.gz" + version "3.1.0-draft.2" + sha256 "8a43bb3b8a93e0c221d971be30ad96e4ffb38d85bcb1d006671aa57992761e4f" depends_on "node" def install diff --git a/Formula/twiliodraft@2.35.0-draft.1.rb b/Formula/twiliodraft@2.35.0-draft.1.rb new file mode 100644 index 0000000..26db120 --- /dev/null +++ b/Formula/twiliodraft@2.35.0-draft.1.rb @@ -0,0 +1,21 @@ +require "language/node" + +class TwiliodraftAT2350Draft1 < 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/draft/twilio-v2.35.0-draft.1/twilio-v2.35.0-draft.1.tar.gz" + version "2.35.0-draft.1" + sha256 "bb8252cca1cce30051da332fc46141938c6339b14d9e1d3164669a68854e72d3" + 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