lib/berkshelf/formatters/human.rb in berkshelf-5.5.0 vs lib/berkshelf/formatters/human.rb in berkshelf-5.6.0
- old
+ new
@@ -58,15 +58,15 @@
# @param [Hash] hash
# the list of outdated cookbooks in the format
# { 'cookbook' => { 'supermarket.chef.io' => #<Cookbook> } }
def outdated(hash)
if hash.empty?
- Berkshelf.ui.info('All cookbooks up to date!')
+ Berkshelf.ui.info("All cookbooks up to date!")
else
- Berkshelf.ui.info('The following cookbooks have newer versions:')
+ Berkshelf.ui.info("The following cookbooks have newer versions:")
hash.each do |name, info|
- info['remote'].each do |remote_source, remote_version|
+ info["remote"].each do |remote_source, remote_version|
out = " * #{name} (#{info['local']} => #{remote_version})"
unless remote_source.default?
out << " [#{remote_source.uri}]"
end