29 lines
1010 B
Ruby
29 lines
1010 B
Ruby
class Whalebrew < Formula
|
|
desc "Homebrew, but with Docker images"
|
|
homepage "https://github.com/whalebrew/whalebrew"
|
|
url "https://github.com/whalebrew/whalebrew.git",
|
|
tag: "0.2.5",
|
|
revision: "0b2fea55ff992acd69b6840ddad7f08d4ef28574"
|
|
license "Apache-2.0"
|
|
head "https://github.com/whalebrew/whalebrew.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "5a5c9c6a3132942741bc69ed57081a38570f783f316a5b922d20ee6c16efa4a2" => :big_sur
|
|
sha256 "13a6c59ba4c19570fcccef4b187755a4dfcc26038faba5168a3eb33644ade588" => :catalina
|
|
sha256 "0aeae5e296d00a1b00a53b6a5b9c9aea39731826ea882e3adb51e51bd3fed653" => :mojave
|
|
sha256 "14b39018ed3d1fa076250354d86e3f9296de24bd5a57144cd265666cbe29a6ee" => :high_sierra
|
|
end
|
|
|
|
depends_on "go" => :build
|
|
|
|
def install
|
|
system "go", "build", "-o", bin/"whalebrew", "."
|
|
end
|
|
|
|
test do
|
|
output = shell_output("#{bin}/whalebrew install whalebrew/whalesay -y", 255)
|
|
assert_match "Cannot connect to the Docker daemon", output
|
|
end
|
|
end
|