lib/r10k/cli/cache.rb in r10k-0.0.5 vs lib/r10k/cli/cache.rb in r10k-0.0.6

- old
+ new

@@ -1,8 +1,9 @@ require 'r10k/cli' require 'r10k/synchro/git' require 'cri' +require 'r10k/logging' module R10K::CLI module Cache def self.command @cmd ||= Cri::Command.define do @@ -10,18 +11,17 @@ usage 'cache' summary 'Update cache for all sources' run do |opts, args, cmd| sources = R10K::Deployment.instance[:sources] - remotes = Set.new sources.each_pair do |name, hash| remotes << hash['remote'] end remotes.each do |remote| - puts "Synchronizing #{remote}" + logger.info "Synchronizing #{remote}" synchro = R10K::Synchro::Git.new(remote) synchro.cache end end end