forked from jozu-ai/kitops
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from brett-hodges/main-homebrew-update
main homebrew update
- Loading branch information
Showing
2 changed files
with
46 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,3 @@ | ||
"eb92bb276e7f6306529b12a87596c3f48be326f743ff535fdc641d53a3d2b653" "https://github.com/brett-hodges/kitops/releases/download/v5.0.1/kitops-linux-arm64.tar.gz" linux-arm64 5.0.1 | ||
"afcf6b0add91f42235b57ba86768f2aa1278c3e2075060ddfba67dce9ff027e6" "https://github.com/brett-hodges/kitops/releases/download/v5.0.1/kitops-linux-i386.tar.gz" linux-i386 5.0.1 | ||
"c96adf52709106127fda6df8de96ad72d62a74a8063da417725829225ba7fd45" "https://github.com/brett-hodges/kitops/releases/download/v5.0.1/kitops-linux-x86_64.tar.gz" linux-x86_64 5.0.1 |
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 Kitops < Formula | ||
desc "Packaging and versioning system for AI/ML projects" | ||
homepage "https://KitOps.ml" | ||
license "Apache-2.0" | ||
|
||
on_macos do | ||
on_arm do | ||
url | ||
sha256 | ||
end | ||
on_intel do | ||
url | ||
sha256 | ||
end | ||
|
||
end | ||
|
||
on_linux do | ||
on_arm do | ||
url "https://github.com/brett-hodges/kitops/releases/download/v5.0.1/kitops-linux-arm64.tar.gz" | ||
sha256 "eb92bb276e7f6306529b12a87596c3f48be326f743ff535fdc641d53a3d2b653" | ||
end | ||
on_intel do | ||
if Hardware::CPU.is_64_bit? | ||
url "https://github.com/brett-hodges/kitops/releases/download/v5.0.1/kitops-linux-x86_64.tar.gz" | ||
sha256 "c96adf52709106127fda6df8de96ad72d62a74a8063da417725829225ba7fd45" | ||
else | ||
url "https://github.com/brett-hodges/kitops/releases/download/v5.0.1/kitops-linux-i386.tar.gz" | ||
sha256 "afcf6b0add91f42235b57ba86768f2aa1278c3e2075060ddfba67dce9ff027e6" | ||
end | ||
end | ||
end | ||
|
||
def install | ||
bin.install "kit" | ||
end | ||
|
||
test do | ||
expected_version = "Version: " | ||
actual_version = shell_output("#{bin}/kit version").strip | ||
assert_match expected_version, actual_version | ||
end | ||
end |