Skip to content

Commit

Permalink
Release 5.22.10
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Jan 28, 2025
1 parent e3efbf6 commit 1b3e49b
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.9/twilio-v5.22.9.tar.gz"
version "5.22.9"
sha256 "9df70cafb2b08885eb39fb5db7e57bb23230e4af95f102fe8288f57cc2b1ec2c"
url "https://twilio-cli-prod.s3.amazonaws.com/twilio-v5.22.10/twilio-v5.22.10.tar.gz"
version "5.22.10"
sha256 "e49276548e9c8ac6326d30dbb7b7388fd7734850eaadd11aa26b2eee382c8016"
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 TwilioAT5229 < 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.9/twilio-v5.22.9.tar.gz"
version "5.22.9"
sha256 "9df70cafb2b08885eb39fb5db7e57bb23230e4af95f102fe8288f57cc2b1ec2c"
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 1b3e49b

Please sign in to comment.