# File lib/simp/cli/config/items/action/check_server_yum_config_action.rb, line 39
    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 = show_wait_spinner {
        query_result = execute('repoquery -i kernel | grep ^Repository')
        query_result = query_result && execute('repoquery -i simp | grep ^Repository')
        query_result = query_result && execute('repoquery -i puppet-agent | grep ^Repository')
        query_result
      }

      if result
        @applied_status = :succeeded
      else
        # issue a warning
        warn( "\nWARNING: #{@warning_message_brief}", [:RED] )
        warn( "See #{Simp::Cli::BOOTSTRAP_START_LOCK_FILE} for details", [:RED] )

        # append/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, 'a') do |file|
          file.write @warning_message
        end
        @applied_status = :failed
      end
    end