lib/berkshelf/resolver.rb in berkshelf-0.4.0.rc3 vs lib/berkshelf/resolver.rb in berkshelf-0.4.0.rc4

- old
+ new

@@ -124,11 +124,11 @@ # @param [Berkshelf::CookbookSource] source # # @return [Boolean] def install_source(source) downloader.download!(source) - Berkshelf.ui.info "Installing #{source.name} (#{source.cached_cookbook.version}) from #{source.location}" + Berkshelf.formatter.install source.name, source.cached_cookbook.version, source.location end # Use the given source to create a constraint solution if the source has been downloaded or can # be satisfied by a cached cookbook that is already present in the cookbook store. # @@ -156,12 +156,11 @@ return false if cached.nil? get_source(source).cached_cookbook = cached end - msg = "Using #{cached.cookbook_name} (#{cached.version})" - msg << " at #{source.location}" if source.location.is_a?(CookbookSource::PathLocation) - Berkshelf.ui.info msg + path = source.location.is_a?(CookbookSource::PathLocation) ? "#{source.location}" : nil + Berkshelf.formatter.use cached.cookbook_name, cached.version, path true end end end