Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Casks/ds.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cask "ds" do
version "0.18.6"
sha256 "eccb3f1bcaa373a43f431201da0de29537e04041414a30158dd8e89e41e64136"
version "0.18.7"
sha256 "54585c5575e3a96f3357efa250ebf11d700cc9abdc88e39d1964726a92ff609a"

url "https://github.com/docker/dash-releases/releases/download/v#{version}/Dash.tar.gz"
name "Dash by Docker"
Expand Down
31 changes: 31 additions & 0 deletions Casks/ds@0.18.7.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
cask "ds@0.18.7" do
version "0.18.7"
sha256 "54585c5575e3a96f3357efa250ebf11d700cc9abdc88e39d1964726a92ff609a"

url "https://github.com/docker/dash-releases/releases/download/v#{version}/Dash.tar.gz"
name "Dash by Docker"
desc "Build, run, and govern agents across the software development lifecycle"
homepage "https://github.com/docker/dash-releases"

depends_on arch: :arm64,
macos: ">= :tahoe"

binary "bin/ds", target: "ds-0.18.7"
bash_completion "completions/bash/ds", target: "ds-0.18.7"
fish_completion "completions/fish/ds.fish", target: "ds-0.18.7.fish"
zsh_completion "completions/zsh/_ds", target: "_ds-0.18.7"

uninstall_preflight do
ds_binary = "#{caskroom_path}/#{version}/bin/ds"
next unless File.exist?(ds_binary)

system_command ds_binary,
args: ["daemon", "stop"],
print_stderr: false
end

caveats <<~EOS
Since a version-specific cask was installed, the binary to use is: ds-#{version}
Note: Prompt for update will be disabled for version-specific installations.
EOS
end
Loading