instance method outdated

Ruby on Rails 2.1.0

Since v1.1.6 Last seen in v2.2.3

Available in: v1.1.6 v1.2.3 v2.0.3 v2.1.0 v2.2.3

Signature

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

Type at least 2 characters to search.

↑↓ navigate · open · esc close