Sha256: f584745dc7b390d3759d373e4585861e42f28033add01693e78746ce3598ba24
Contents?: true
Size: 713 Bytes
Versions: 5
Compression:
Stored size: 713 Bytes
Contents
require 'r10k/cli' require 'r10k/synchro/git' require 'cri' module R10K::CLI module Cache def self.command @cmd ||= Cri::Command.define do name 'cache' 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}" synchro = R10K::Synchro::Git.new(remote) synchro.cache end end end end end self.command.add_command(Cache.command) end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
r10k-0.0.5 | lib/r10k/cli/cache.rb |
r10k-0.0.4 | lib/r10k/cli/cache.rb |
r10k-0.0.3 | lib/r10k/cli/cache.rb |
r10k-0.0.2 | lib/r10k/cli/cache.rb |
r10k-0.0.1 | lib/r10k/cli/cache.rb |