cask/installer.rb: Stopped including Staged

This commit is contained in:
apainintheneck 2022-07-03 18:04:36 -07:00
parent 8b3ff3ddaa
commit c322f4fb90
2 changed files with 2 additions and 7 deletions

View File

@ -1,6 +1,8 @@
# typed: strict # typed: strict
# frozen_string_literal: true # frozen_string_literal: true
require "cask/staged"
module Cask module Cask
class DSL class DSL
# Class corresponding to the `preflight` stanza. # Class corresponding to the `preflight` stanza.

View File

@ -7,7 +7,6 @@ require "utils/topological_hash"
require "cask/config" require "cask/config"
require "cask/download" require "cask/download"
require "cask/staged"
require "cask/quarantine" require "cask/quarantine"
require "cgi" require "cgi"
@ -20,12 +19,6 @@ module Cask
extend T::Sig extend T::Sig
extend Predicable extend Predicable
# TODO: it is unwise for Cask::Staged to be a module, when we are
# dealing with both staged and unstaged casks here. This should
# either be a class which is only sometimes instantiated, or there
# should be explicit checks on whether staged state is valid in
# every method.
include Staged
def initialize(cask, command: SystemCommand, force: false, def initialize(cask, command: SystemCommand, force: false,
skip_cask_deps: false, binaries: true, verbose: false, skip_cask_deps: false, binaries: true, verbose: false,