lib/r10k/cli/cache.rb in r10k-0.0.6 vs lib/r10k/cli/cache.rb in r10k-0.0.7
- old
+ new
@@ -10,18 +10,18 @@
name 'cache'
usage 'cache'
summary 'Update cache for all sources'
run do |opts, args, cmd|
- sources = R10K::Deployment.instance[:sources]
+ sources = R10K::Deployment.config[:sources]
remotes = Set.new
sources.each_pair do |name, hash|
remotes << hash['remote']
end
remotes.each do |remote|
- logger.info "Synchronizing #{remote}"
+ logger.info "Updating cache for #{remote.inspect}"
synchro = R10K::Synchro::Git.new(remote)
synchro.cache
end
end
end