r10k 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,10 @@
|
|
1
1
|
require 'r10k'
|
2
|
+
require 'r10k/logging'
|
2
3
|
|
3
4
|
class R10K::Deployment::EnvironmentCollection
|
4
5
|
|
6
|
+
include R10K::Logging
|
7
|
+
|
5
8
|
attr_reader :update_cache
|
6
9
|
|
7
10
|
def initialize(config, options = {:update_cache => true})
|
@@ -53,7 +56,10 @@ class R10K::Deployment::EnvironmentCollection
|
|
53
56
|
def load_all
|
54
57
|
@config[:sources].each_pair do |repo_name, repo_config|
|
55
58
|
synchro = R10K::Synchro::Git.new(repo_config['remote'])
|
56
|
-
|
59
|
+
if @update_cache
|
60
|
+
logger.info "Updating git cache for #{repo_config['remote']}"
|
61
|
+
synchro.cache
|
62
|
+
end
|
57
63
|
|
58
64
|
if repo_config['ref']
|
59
65
|
@environments << R10K::Root.new(repo_config)
|
data/lib/r10k/version.rb
CHANGED