aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat/hbc/cli/update.rb
blob: 95321e8981356888e86bd8fd74e6eb40580ae849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require "cask/lib/hbc/cli/abstract_command"

module Hbc
  class CLI
    class Update < AbstractCommand
      def self.run(*_ignored)
        odeprecated "`brew cask update`", "`brew update`", disable_on: Time.utc(2017, 7, 1)
        result = SystemCommand.run(HOMEBREW_BREW_FILE, args:         ["update"],
                                                       print_stderr: true,
                                                       print_stdout: true)
        exit result.exit_status
      end

      def self.visible
        false
      end

      def self.help
        "a synonym for 'brew update'"
      end
    end
  end
end