aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat/hbc.rb
blob: ebf8a9874f9cba7999e410767ce0e19f1b7bcdad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require "compat/hbc/cask_loader"
require "compat/hbc/cli/update"
require "compat/hbc/cache"
require "compat/hbc/caskroom"
require "compat/hbc/cli"
require "compat/hbc/dsl"
require "compat/hbc/system_command"

module Hbc
  class << self
    prepend(
      Module.new do
        def init
          Cache.delete_legacy_cache

          Caskroom.migrate_caskroom_from_repo_to_prefix
          Caskroom.migrate_legacy_caskroom

          super
        end
      end,
    )
  end
end