# File lib/simp/cli/config/items/action/check_remote_yum_config_action.rb, line 35 def apply @applied_status = :failed # If repoquery returns nothing, a repo is definitely not set up. # If it returns something, we are going to ASSUME the repo is set # up, but we have no way to verify that the listed repository # is the intended repository. result = execute('repoquery -i kernel | grep ^Repository') result = result && execute('repoquery -i simp | grep ^Repository') if result @applied_status = :succeeded else # issue a warning warn( "\nWARNING: #{@warning_message_brief}", [:YELLOW] ) # create file that will prevent bootstrap from running until problem # is fixed FileUtils.mkdir_p(File.expand_path(File.dirname(@warning_file))) File.open(@warning_file, 'w') do |file| file.write @warning_message end @applied_status = :failed end end