Class: GitGameShow::Updater
- Inherits:
-
Object
- Object
- GitGameShow::Updater
- Defined in:
- lib/git_game_show/updater.rb
Class Method Summary collapse
Class Method Details
.check_for_updates ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/git_game_show/updater.rb', line 11 def check_for_updates current_version = GitGameShow::VERSION latest_version = fetch_latest_version return if latest_version.nil? # Compare versions if newer_version_available?(current_version, latest_version) display_update_prompt(current_version, latest_version) end end |