class Cookbooks::NewCheckForGnomeUpdates
Constants
- NAMESPACE
#¶ ↑
NAMESPACE¶ ↑
#¶ ↑
- 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/cookbooks/check_for_updates/NEW_check_for_gnome_updates.rb, line 76 def also_check_for_unstable_gnome_versions @use_only_stable_gnome_versions = false end
commandline_arguments?()
click to toggle source
#¶ ↑
commandline_arguments?¶ ↑
#¶ ↑
# File lib/cookbooks/check_for_updates/NEW_check_for_gnome_updates.rb, line 97 def commandline_arguments? @commandline_arguments end
Also aliased as: input?
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/cookbooks/check_for_updates/NEW_check_for_gnome_updates.rb, line 104 def consider_notifying_the_user_about_using_only_stable_gnome_versions if @use_only_stable_gnome_versions opnn; e 'Only stable versions will be considered for this class, as the' opnn; e 'variable '+orange('@use_only_stable_gnome_versions')+ ' has been set to true.' opnn; e 'If this is unwanted, pass in the option '+ slateblue('--unstable')+' to this class.' end end
opnn()
click to toggle source
reset()
click to toggle source
#¶ ↑
reset (reset tag)¶ ↑
#¶ ↑
Calls superclass method
# File lib/cookbooks/check_for_updates/NEW_check_for_gnome_updates.rb, line 64 def reset super() @use_only_stable_gnome_versions = USE_ONLY_STABLE_GNOME_VERSIONS @array_updated_these_entries = [] # <- Which programs were updated is kept in this Array. end
run()
click to toggle source