Skip to content
Snippets Groups Projects
Unverified Commit e2fb26b8 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #8387 from MLH-Fellowship/deprecate-cask-cache

cask --cache: Deprecate command
parents e8d28881 3918e130
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,9 @@ module Cask
end
def run
# TODO: enable for next major/minor release
# odeprecated "brew cask --cache", "brew --cache --cask"
casks.each do |cask|
puts self.class.cached_location(cask)
end
......
......@@ -8,6 +8,7 @@ module Cask
end
def run
# TODO: enable for next major/minor release
# odeprecated "brew cask home", "brew home"
if casks.none?
......
......@@ -25,14 +25,9 @@ describe Cask::Cmd::Cache, :cask do
cache: Cask::Cache.path, **local_caffeine.url.specs
).cached_location
expect do
described_class.run("local-transmission", "local-caffeine")
end.to output("#{transmission_location}\n#{caffeine_location}\n").to_stdout
end
it "properly handles Casks that are not present" do
expect {
described_class.run("notacask")
}.to raise_error(Cask::CaskUnavailableError)
expect(described_class.cached_location(local_transmission))
.to eql transmission_location
expect(described_class.cached_location(local_caffeine))
.to eql caffeine_location
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment