Skip to content

Commit

Permalink
Release 5.22.2
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Sep 25, 2024
1 parent d3a65b2 commit ac962a0
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.1/twilio-v5.22.1.tar.gz"
version "5.22.1"
sha256 "7b33031b7df060c8e862e6b2dc5fbf1a784d7aa4d18e8e0439f3ada43ecc5ccd"
url "https://twilio-cli-prod.s3.amazonaws.com/twilio-v5.22.2/twilio-v5.22.2.tar.gz"
version "5.22.2"
sha256 "248b23f2645d7a035d479e0a49d70c6810fac831e30f9f62b7e537bfa7e407d9"
depends_on "node@18"

def install
Expand Down
22 changes: 22 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
require "language/node"

class TwilioAT5221 < 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.1/twilio-v5.22.1.tar.gz"
version "5.22.1"
sha256 "7b33031b7df060c8e862e6b2dc5fbf1a784d7aa4d18e8e0439f3ada43ecc5ccd"
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 ac962a0

Please sign in to comment.