diff --git a/Casks/ds.rb b/Casks/ds.rb index c27a348..4fe3627 100644 --- a/Casks/ds.rb +++ b/Casks/ds.rb @@ -1,6 +1,6 @@ cask "ds" do - version "0.18.5" - sha256 "70fa69be8934cbd77ade3a561ccfc857999f410d82723ca816748095889d3fa7" + version "0.18.6" + sha256 "eccb3f1bcaa373a43f431201da0de29537e04041414a30158dd8e89e41e64136" url "https://github.com/docker/dash-releases/releases/download/v#{version}/Dash.tar.gz" name "Dash by Docker" @@ -21,7 +21,7 @@ next unless File.exist?(ds_binary) system_command ds_binary, - args: ["daemon", "stop"], - print_stderr: false + args: ["daemon", "stop"], + print_stderr: false end end diff --git a/Casks/ds@0.18.6.rb b/Casks/ds@0.18.6.rb new file mode 100644 index 0000000..47fd276 --- /dev/null +++ b/Casks/ds@0.18.6.rb @@ -0,0 +1,31 @@ +cask "ds@0.18.6" do + version "0.18.6" + sha256 "eccb3f1bcaa373a43f431201da0de29537e04041414a30158dd8e89e41e64136" + + 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.6" + bash_completion "completions/bash/ds", target: "ds-0.18.6" + fish_completion "completions/fish/ds.fish", target: "ds-0.18.6.fish" + zsh_completion "completions/zsh/_ds", target: "_ds-0.18.6" + + 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