Skip to content

Commit 2d4dc6d

Browse files
github-actions[bot]gabolaev
authored andcommitted
chore(cask): update ds to v0.18.5
1 parent cd347d3 commit 2d4dc6d

2 files changed

Lines changed: 42 additions & 2 deletions

File tree

Casks/ds.rb

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cask "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"
@@ -15,4 +15,13 @@
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
1827
end

Casks/ds@0.18.5.rb

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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

0 commit comments

Comments
 (0)