def apply
@applied_status = :failed
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
warn( "\nWARNING: #{@warning_message_brief}", [:RED] )
warn( "See #{Simp::Cli::BOOTSTRAP_START_LOCK_FILE} for details", [:RED] )
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