-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsbx.rb
More file actions
27 lines (22 loc) · 895 Bytes
/
sbx.rb
File metadata and controls
27 lines (22 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cask "sbx" do
version "0.20.0"
sha256 "916e9083ef673e57156434bf80bfc3cfef3139d86e1f3970071e5e25b93491b7"
url "https://github.com/docker/sbx-releases/releases/download/v#{version}/DockerSandboxes.tar.gz"
name "Docker Sandboxes"
desc "Build, run, and govern agents across the software development lifecycle"
homepage "https://github.com/docker/sbx-releases"
conflicts_with cask: "docker/tap/sbx@nightly"
depends_on arch: :arm64,
macos: ">= :tahoe"
binary "bin/sbx", target: "sbx"
bash_completion "completions/bash/sbx"
fish_completion "completions/fish/sbx.fish"
zsh_completion "completions/zsh/_sbx"
uninstall_preflight do
sbx_binary = "#{caskroom_path}/#{version}/bin/sbx"
next unless File.exist?(sbx_binary)
system_command sbx_binary,
args: ["daemon", "stop"],
print_stderr: false
end
end