class RBT::Cookbooks::NewCheckForGnomeUpdates
Constants
- ONE_DAY
#¶ ↑
ONE_DAY
¶ ↑#¶ ↑
- TRAILING_END_OF_THE_REMOTE_WEBPAGE
#¶ ↑
TRAILING_END_OF_THE_REMOTE_WEBPAGE
¶ ↑#¶ ↑
- USE_ONLY_STABLE_GNOME_VERSIONS
#¶ ↑
USE_ONLY_STABLE_GNOME_VERSIONS
¶ ↑If the following constant is set to true, we will only use stable gnome versions for the purpose of this class here. So for example, any program with version names such “2.27.1” will be ignored. The user will be notified about this on startup.
#¶ ↑
Public Class Methods
[](i = '')
click to toggle source
Public Instance Methods
also_check_for_unstable_gnome_versions()
click to toggle source
#¶ ↑
also_check_for_unstable_gnome_versions
¶ ↑
By default, this method will be silent. If you need to send a message to the user, you have to do so on your own.
#¶ ↑
# File lib/rbt/check_for_updates/NEW_check_for_gnome_updates.rb, line 79 def also_check_for_unstable_gnome_versions @use_only_stable_gnome_versions = false end
consider_notifying_the_user_about_using_only_stable_gnome_versions()
click to toggle source
#¶ ↑
consider_notifying_the_user_about_using_only_stable_gnome_versions
¶ ↑
#¶ ↑
# File lib/rbt/check_for_updates/NEW_check_for_gnome_updates.rb, line 86 def consider_notifying_the_user_about_using_only_stable_gnome_versions if @use_only_stable_gnome_versions opne 'Only stable versions will be considered for this class, as the' opne 'variable '+orange('@use_only_stable_gnome_versions')+ ' has been set to true.' opne 'If this is unwanted, pass in the option '+ slateblue('--unstable')+' to this class.' end end
reset()
click to toggle source
#¶ ↑
reset (reset tag)¶ ↑
#¶ ↑
Calls superclass method
# File lib/rbt/check_for_updates/NEW_check_for_gnome_updates.rb, line 63 def reset super() infer_the_namespace # ======================================================================= # # === @use_only_stable_gnome_versions # ======================================================================= # @use_only_stable_gnome_versions = USE_ONLY_STABLE_GNOME_VERSIONS @array_updated_these_entries = [] # <- Which programs were updated is kept in this Array. end