Skip to content

Commit

Permalink
Release 5.22.5
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Oct 24, 2024
1 parent 870a3ba commit ecf26d7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Formula/twilio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.22.4/twilio-v5.22.4.tar.gz"
version "5.22.4"
sha256 "fe287e4b54339a82f86789010c31f2f5cdc1842eb98dda6f47350230aa5bcc77"
url "https://twilio-cli-prod.s3.amazonaws.com/twilio-v5.22.5/twilio-v5.22.5.tar.gz"
version "5.22.5"
sha256 "97b85e9e42bf9e2716f8f497b305bf5b25d0462873c638c54cdaf49968a703dc"
depends_on "node@18"

def install
Expand Down
22 changes: 22 additions & 0 deletions Formula/twilio@5.22.4.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
require "language/node"

class TwilioAT5224 < 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.22.4/twilio-v5.22.4.tar.gz"
version "5.22.4"
sha256 "fe287e4b54339a82f86789010c31f2f5cdc1842eb98dda6f47350230aa5bcc77"
depends_on "node@18"

def install
inreplace "bin/twilio", /^CLIENT_HOME=/, "export TWILIO_OCLIF_CLIENT_HOME=#{lib/"client"}\nCLIENT_HOME="
libexec.install Dir["*"]
(bin/"twilio").write_env_script libexec/"bin/twilio", PATH: "#{Formula["node@18"].opt_bin}:$PATH"
end

def post_install
node = Formula["node@18"].opt_bin/"node"
pid = spawn("#{node} #{libexec}/welcome.js")
Process.wait pid
end
end

0 comments on commit ecf26d7

Please sign in to comment.