instance method
outdated
Ruby on Rails 1.2.3
Since v1.1.6 Last seen in v2.2.3Signature
outdated()
No documentation comment.
Source
# File lib/importmap/commands.rb, line 89
def outdated
outdated_packages = npm.outdated_packages
if outdated_packages.any?
table = [["Package", "Current", "Latest"]]
outdated_packages.each { |p| table << [p.name, p.current_version, p.latest_version || p.error] }
puts_table(table)
packages = 'package'.pluralize(outdated_packages.size)
puts " #{outdated_packages.size} outdated #{packages} found"
exit 1
else
puts "No outdated packages found"
end
end
Defined in lib/importmap/commands.rb line 89
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Importmap::Commands