in lib/gdk/command/cleanup.rb [15:41]
def continue?
GDK::Output.warn('About to perform the following actions:')
GDK::Output.puts(stderr: true)
GDK::Output.puts('- Truncate gitlab/log/* files', stderr: true)
GDK::Output.puts("- Truncate #{GDK::Services::GitlabHttpRouter::LOG_PATH} file", stderr: true)
if unnecessary_installed_versions_of_software.any?
GDK::Output.puts(stderr: true)
GDK::Output.puts('- Uninstall any asdf software that is not defined in .tool-versions:', stderr: true)
unnecessary_installed_versions_of_software.each do |name, versions|
GDK::Output.puts("#{name} #{versions.keys.join(' ')}")
end
GDK::Output.puts(stderr: true)
GDK::Output.puts('Run `GDK_CLEANUP_SOFTWARE=false gdk cleanup` to skip uninstalling software.')
end
GDK::Output.puts(stderr: true)
return true if ENV.fetch('GDK_CLEANUP_CONFIRM', 'false') == 'true' || !GDK::Output.interactive?
result = GDK::Output.prompt('Are you sure? [y/N]').match?(/\Ay(?:es)*\z/i)
GDK::Output.puts(stderr: true)
result
end