Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove cask/cmd/fetch #14948

Merged
merged 5 commits into from Mar 19, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion Library/Homebrew/cask/cmd.rb
Expand Up @@ -11,7 +11,6 @@

require "cask/cmd/abstract_command"
require "cask/cmd/audit"
require "cask/cmd/fetch"
require "cask/cmd/install"
require "cask/cmd/reinstall"
require "cask/cmd/uninstall"
Expand Down
41 changes: 0 additions & 41 deletions Library/Homebrew/cask/cmd/fetch.rb

This file was deleted.

60 changes: 0 additions & 60 deletions Library/Homebrew/test/cask/cmd/fetch_spec.rb

This file was deleted.

13 changes: 8 additions & 5 deletions Library/Homebrew/test/cask/quarantine_spec.rb
Expand Up @@ -2,7 +2,6 @@
# frozen_string_literal: true

require "cask/cmd/audit"
require "cask/cmd/fetch"
require "cask/cmd/install"
require "cask/cask_loader"
require "cask/download"
Expand All @@ -29,7 +28,8 @@
end

it "quarantines Cask fetches" do
Cask::Cmd::Fetch.run("local-transmission")
download = Cask::Download.new(Cask::CaskLoader.load("local-transmission"), quarantine: true)
download.fetch
local_transmission = Cask::CaskLoader.load(cask_path("local-transmission"))
cached_location = Cask::Download.new(local_transmission).fetch

Expand All @@ -50,7 +50,8 @@
end

it "quarantines Cask installs even if the fetch was not" do
Cask::Cmd::Fetch.run("local-transmission", "--no-quarantine")
download = Cask::Download.new(Cask::CaskLoader.load("local-transmission"), quarantine: false)
download.fetch

Cask::Cmd::Install.run("local-transmission")

Expand Down Expand Up @@ -144,7 +145,8 @@
end

it "does not quarantine Cask fetches" do
Cask::Cmd::Fetch.run("local-transmission", "--no-quarantine")
download = Cask::Download.new(Cask::CaskLoader.load("local-transmission"), quarantine: false)
download.fetch
local_transmission = Cask::CaskLoader.load(cask_path("local-transmission"))
cached_location = Cask::Download.new(local_transmission).fetch

Expand All @@ -165,7 +167,8 @@
end

it "does not quarantine Cask installs even if the fetch was" do
Cask::Cmd::Fetch.run("local-transmission")
download = Cask::Download.new(Cask::CaskLoader.load("local-transmission"), quarantine: true)
download.fetch

Cask::Cmd::Install.run("local-transmission", "--no-quarantine")

Expand Down