Skip to content

Commit

Permalink
Release 5.21.2
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Aug 26, 2024
1 parent 553e502 commit 573f482
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.21.1/twilio-v5.21.1.tar.gz"
version "5.21.1"
sha256 "b3c553c3ce58fef5f216fda024795fb370aa2f613011d3b233edd25a5c005971"
url "https://twilio-cli-prod.s3.amazonaws.com/twilio-v5.21.2/twilio-v5.21.2.tar.gz"
version "5.21.2"
sha256 "fa92b618a7e7f3209b46e3d293fd8bd7f0eac1c0d7666926141e3c291c0cf24c"
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 TwilioAT5211 < 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.21.1/twilio-v5.21.1.tar.gz"
version "5.21.1"
sha256 "b3c553c3ce58fef5f216fda024795fb370aa2f613011d3b233edd25a5c005971"
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 573f482

Please sign in to comment.