2019-10-22 22:25:35 +00:00
|
|
|
class Toast < Formula
|
|
|
|
desc "Tool for running tasks in containers"
|
|
|
|
homepage "https://github.com/stepchowfun/toast"
|
2020-01-01 18:47:31 +00:00
|
|
|
url "https://github.com/stepchowfun/toast/archive/v0.30.0.tar.gz"
|
|
|
|
sha256 "9222a46a36eecae89c6dfcc96cd4a36bf7c12bb259da74b283a7adad2607896f"
|
2019-10-22 22:25:35 +00:00
|
|
|
|
2019-10-22 22:40:39 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2020-01-01 18:58:36 +00:00
|
|
|
sha256 "f46a065bf8537af0afb8a38659db2caabc76a0aa8efbaa05fce46c96d6b87b7f" => :catalina
|
|
|
|
sha256 "468e2416718f0cf2340ac5ceec225499fbda20d5ee3bb0f9097426f8d4da0ca2" => :mojave
|
|
|
|
sha256 "5676a564359d95160f81166ce541ff43971fa628d9e44c5745d37fc51a0bf3d2" => :high_sierra
|
2019-10-22 22:40:39 +00:00
|
|
|
end
|
|
|
|
|
2019-10-22 22:25:35 +00:00
|
|
|
depends_on "rust" => :build
|
|
|
|
|
|
|
|
def install
|
2019-11-02 23:27:14 +00:00
|
|
|
system "cargo", "install", "--locked", "--root", prefix, "--path", "."
|
2019-10-22 22:25:35 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"toast.yml").write <<~EOS
|
|
|
|
image: alpine
|
|
|
|
tasks:
|
|
|
|
homebrew_test:
|
|
|
|
command: echo hello
|
|
|
|
EOS
|
|
|
|
|
|
|
|
assert_match "homebrew_test", shell_output("#{bin}/toast --list")
|
|
|
|
end
|
|
|
|
end
|