Skip to content

Commit

Permalink
Brew formula update for veracode-cli version 2.29.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shahid-veracode committed Aug 1, 2024
1 parent 0ad1867 commit f6966b2
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions Formula/veracode-cli.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
class VeracodeCli < Formula
desc "You use the Veracode CLI to perform various actions for testing the security of your applications."
homepage "https://www.veracode.com"
version "2.29.0"
license "MIT"

on_macos do
if Hardware::CPU.arm?
url "https://tools.veracode.com/veracode-cli/veracode-cli_2.29.0_macosx_arm64.tar.gz"
sha256 "ea898ce255db51150937ec15ed17e9a3110a14628468852efce64b05b61e8a97"
elsif Hardware::CPU.intel?
url "https://tools.veracode.com/veracode-cli/veracode-cli_2.29.0_macosx_x86.tar.gz"
sha256 "bf6060fda0db988e77b04d3ece3b9c9e20de59b72f11dcc2c0df451cb8ed56c8"
end

def install
bin.install "veracode"
end
end

on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://tools.veracode.com/veracode-cli/veracode-cli_2.29.0_linux_x86.tar.gz"
sha256 "667cfe73181875233eff3f5ef0cd1bfbf9a6d5c3229cd4e12ba3990f35a97afd"

def install
bin.install "veracode"
end
fi
if Hardware::CPU.intel?
url "https://tools.veracode.com/veracode-cli/veracode-cli_2.29.0_linux_x86.tar.gz"
sha256 "667cfe73181875233eff3f5ef0cd1bfbf9a6d5c3229cd4e12ba3990f35a97afd"

def install
bin.install "veracode"
end
fi
end

test do
system "#{bin}/veracode --version"
end
end

0 comments on commit f6966b2

Please sign in to comment.