Class: CC::CLI::VersionChecker
- Inherits:
-
Object
- Object
- CC::CLI::VersionChecker
show all
- Includes:
- Output
- Defined in:
- lib/cc/cli/version_checker.rb
Constant Summary
collapse
- VERSION_CHECK_TIMEOUT =
60 * 60
- DEFAULT_VERSIONS_URL =
"https://versions.codeclimate.com".freeze
Instance Method Summary
collapse
Methods included from Output
#colorize, #fatal, #rainbow, #say, #success, #warn
Instance Method Details
#check ⇒ Object
12
13
14
15
16
17
18
19
20
|
# File 'lib/cc/cli/version_checker.rb', line 12
def check
return unless global_config.check_version? && version_check_is_due?
print_new_version_message if outdated?
global_config.save
rescue => error
CLI.logger.debug(error)
end
|