class ForemanMaintain::Cli::UpdateCommand
Public Class Methods
disable_self_update_option()
click to toggle source
# File lib/foreman_maintain/cli/update_command.rb, line 6 def self.disable_self_update_option option '--disable-self-update', :flag, 'Disable automatic self update', :default => false end
Public Instance Methods
execute()
click to toggle source
# File lib/foreman_maintain/cli/update_command.rb, line 26 def execute ForemanMaintain.validate_downstream_packages ForemanMaintain.perform_self_upgrade unless disable_self_update? runner = update_runner runner.run_phase(:pre_update_checks) exit runner.exit_code end
update_runner()
click to toggle source
# File lib/foreman_maintain/cli/update_command.rb, line 11 def update_runner update_runner = ForemanMaintain::UpdateRunner.new( reporter, :assumeyes => assumeyes?, :whitelist => whitelist || [], :force => force? ) update_runner.load update_runner end