instance method
update
Ruby on Rails 2.2.3
Since v2.0.3 Last seen in v2.2.3Signature
update()
No documentation comment.
Source
# File lib/importmap/commands.rb, line 91
def update
if (outdated_packages = npm.outdated_packages).any?
package_names = outdated_packages.map(&:name)
packages_with_options = packager.extract_existing_pin_options(package_names)
for_each_import(package_names, env: "production", from: "jspm") do |package, url|
options = packages_with_options[package] || {}
pin_package(package, url, options[:preload])
end
else
puts "No outdated packages found"
end
end
Defined in lib/importmap/commands.rb line 91
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Importmap::Commands