Skip to content

Commit

Permalink
chore: add template file for new formula (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
cprice404 authored Dec 22, 2022
1 parent 7cf35f9 commit 47c243c
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions Formula/momento-experimental-cli.rb.template
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

0 comments on commit 47c243c

Please sign in to comment.