File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11cask "ds" do
2- version "0.18.4 "
3- sha256 "63ca0866c9649132a2daa856cba941c41e171dcae274d951f07ab695e33695d9 "
2+ version "0.18.5 "
3+ sha256 "70fa69be8934cbd77ade3a561ccfc857999f410d82723ca816748095889d3fa7 "
44
55 url "https://github.com/docker/dash-releases/releases/download/v#{ version } /Dash.tar.gz"
66 name "Dash by Docker"
1515 bash_completion "completions/bash/ds"
1616 fish_completion "completions/fish/ds.fish"
1717 zsh_completion "completions/zsh/_ds"
18+
19+ uninstall_preflight do
20+ ds_binary = "#{ caskroom_path } /#{ version } /bin/ds"
21+ next unless File . exist? ( ds_binary )
22+
23+ system_command ds_binary ,
24+ args : [ "daemon" , "stop" ] ,
25+ print_stderr : false
26+ end
1827end
Original file line number Diff line number Diff line change 1+ cask "ds@0.18.5" do
2+ version "0.18.5"
3+ sha256 "70fa69be8934cbd77ade3a561ccfc857999f410d82723ca816748095889d3fa7"
4+
5+ url "https://github.com/docker/dash-releases/releases/download/v#{ version } /Dash.tar.gz"
6+ name "Dash by Docker"
7+ desc "Build, run, and govern agents across the software development lifecycle"
8+ homepage "https://github.com/docker/dash-releases"
9+
10+ depends_on arch : :arm64 ,
11+ macos : ">= :tahoe"
12+
13+ binary "bin/ds" , target : "ds-0.18.5"
14+ bash_completion "completions/bash/ds" , target : "ds-0.18.5"
15+ fish_completion "completions/fish/ds.fish" , target : "ds-0.18.5.fish"
16+ zsh_completion "completions/zsh/_ds" , target : "_ds-0.18.5"
17+
18+ uninstall_preflight do
19+ ds_binary = "#{ caskroom_path } /#{ version } /bin/ds"
20+ next unless File . exist? ( ds_binary )
21+
22+ system_command ds_binary ,
23+ args : [ "daemon" , "stop" ] ,
24+ print_stderr : false
25+ end
26+
27+ caveats <<~EOS
28+ Since a version-specific cask was installed, the binary to use is: ds-#{ version }
29+ Note: Prompt for update will be disabled for version-specific installations.
30+ EOS
31+ end
You can’t perform that action at this time.
0 commit comments