Merge pull request #3371 from commitay/cask-doctor

Cask doctor: add macOS & Java versions
This commit is contained in:
Markus Reiter 2017-11-22 10:32:17 +01:00 committed by GitHub
commit a869ce0143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,5 @@
require "system_config"
module Hbc module Hbc
class CLI class CLI
class Doctor < AbstractCommand class Doctor < AbstractCommand
@ -9,6 +11,8 @@ module Hbc
def run def run
ohai "Homebrew-Cask Version", Hbc.full_version ohai "Homebrew-Cask Version", Hbc.full_version
ohai "macOS", MacOS.full_version
ohai "Java", SystemConfig.describe_java
ohai "Homebrew-Cask Install Location", self.class.render_install_location ohai "Homebrew-Cask Install Location", self.class.render_install_location
ohai "Homebrew-Cask Staging Location", self.class.render_staging_location(Hbc.caskroom) ohai "Homebrew-Cask Staging Location", self.class.render_staging_location(Hbc.caskroom)
ohai "Homebrew-Cask Cached Downloads", self.class.render_cached_downloads ohai "Homebrew-Cask Cached Downloads", self.class.render_cached_downloads