-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add template file for new formula (#129)
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
class MomentoExperimentalCli < Formula | ||
desc "Cli to interact with Momento services" | ||
homepage "https://github.com/momentohq/momento-cli" | ||
version "${MOMENTO_CLI_VERSION}" | ||
|
||
on_macos do | ||
if Hardware::CPU.intel? | ||
url "${MOMENTO_CLI_MAC_X86_64_URL}" | ||
sha256 "${MOMENTO_CLI_MAC_X86_64_SHA}" | ||
|
||
def install | ||
bin.install "momento" | ||
end | ||
end | ||
if Hardware::CPU.arm? | ||
url "${MOMENTO_CLI_MAC_AARCH64_URL}" | ||
sha256 "${MOMENTO_CLI_MAC_AARCH64_SHA}" | ||
|
||
def install | ||
bin.install "momento" | ||
end | ||
end | ||
end | ||
|
||
on_linux do | ||
if Hardware::CPU.intel? | ||
url "${MOMENTO_CLI_LINUX_X86_64_URL}" | ||
sha256 "${MOMENTO_CLI_LINUX_X86_64_SHA}" | ||
|
||
def install | ||
bin.install "momento" | ||
end | ||
end | ||
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit? | ||
url "${MOMENTO_CLI_LINUX_AARCH64_URL}" | ||
sha256 "${MOMENTO_CLI_LINUX_AARCH64_SHA}" | ||
|
||
def install | ||
bin.install "momento" | ||
end | ||
end | ||
end | ||
end |