-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsbx@0.20.0.rb
More file actions
31 lines (25 loc) · 1.1 KB
/
sbx@0.20.0.rb
File metadata and controls
31 lines (25 loc) · 1.1 KB
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
28
29
30
31
cask "sbx@0.20.0" 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"
depends_on arch: :arm64,
macos: ">= :tahoe"
binary "bin/sbx", target: "sbx-0.20.0"
bash_completion "completions/bash/sbx", target: "sbx-0.20.0"
fish_completion "completions/fish/sbx.fish", target: "sbx-0.20.0.fish"
zsh_completion "completions/zsh/_sbx", target: "_sbx-0.20.0"
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
caveats <<~EOS
Since a version-specific cask was installed, the binary to use is: sbx-#{version}
Note: Prompt for update will be disabled for version-specific installations.
EOS
end