-
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.
Closes #22. Signed-off-by: Kimmo Lehto <[email protected]> Signed-off-by: Kimmo Lehto <[email protected]>
- Loading branch information
Showing
1 changed file
with
28 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,28 @@ | ||
class Bootloose < Formula | ||
desc "Creates containers that look like virtual machines" | ||
homepage "https://github.com/k0sproject/bootloose" | ||
url "https://github.com/k0sproject/bootloose.git", | ||
tag: "v0.7.1", | ||
revision: "709d49157a34833b8d2a72547fe7876d601307a1" | ||
license "Apache-2.0" | ||
head "https://github.com/k0sproject/bootloose.git", branch: "main" | ||
|
||
bottle do | ||
root_url "https://github.com/k0sproject/homebrew-tap/releases/download/bootloose-0.7.1" | ||
end | ||
|
||
depends_on "go" => :build | ||
|
||
def install | ||
system "make", "bootloose", "TAG_NAME=v#{version}" | ||
bin.install "bootloose" | ||
prefix.install ["LICENSE", "NOTICE", "README.md"] | ||
|
||
generate_completions_from_executable(bin/"bootloose", "completion") | ||
end | ||
|
||
test do | ||
version_output = shell_output(bin/"bootloose version 2>&1") | ||
assert_match "v#{version}", version_output | ||
end | ||
end |