instance method
outdated
Ruby on Rails 2.1.0
Since v1.1.6 Last seen in v2.2.3Signature
outdated()
No documentation comment.
Source
# File lib/importmap/commands.rb, line 95
def outdated
if (outdated_packages = npm.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 95
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Importmap::Commands