docker-template 0.10.1 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5bf62767522e006ada966819503966d664f241d0
4
- data.tar.gz: 8975283cd6cb3fa23e6818f701a25318fe1ff2c3
3
+ metadata.gz: 51ca564b33773a01fe5be9b298e96315cde1ed3e
4
+ data.tar.gz: a06cdc4c142a5288d7a5ecd074f7bee5447faf81
5
5
  SHA512:
6
- metadata.gz: 44c53179c5b4eaa63ad68abf43d6e15a167bb03c5d5d33ccb45112b08cf135c3c6d85636f3514667465dbe30aa152d017d87d4aaa8a6f9c1421b20d5743736a1
7
- data.tar.gz: 1f8caf47fe8a3a234da841f07b51f3508119d777c12cc9236b9ae35791d5a0643e74bc0080fc22a458ef0f3bb0df1d6f4c136fc7f3c4ac96fdbe7705b3789ed2
6
+ metadata.gz: 51056d978d69eac78b67ebbe33e43c74a9d600d64a6491e4baa00f60bbaebf9ae479252c023591c3327a094d2b10f0ed216b9bd5ed8a322c67ed59ffa1780347
7
+ data.tar.gz: ee5d5e3ed09ae25e53e055a4c8df335aa5c8f86f0c57cc0741f43186ae5fb0acddecda0fd7c7639af975440c7279f49254167685908898838469f127fef9c03b
@@ -228,10 +228,14 @@ module Docker
228
228
 
229
229
  private
230
230
  def copy_git
231
- return if rootfs? || !@repo.meta.git? || !@repo.meta.push_only?
231
+ return if rootfs? || !@repo.meta.git? || @repo.meta.push_only?
232
232
  require "rugged"
233
233
 
234
- @repo.meta[:git].each do |repo|
234
+ repos = @repo.meta[:git]
235
+ repos = repos.for_all + (repos.by_tag || []) +
236
+ (repos.by_type || [])
237
+
238
+ repos.each do |repo|
235
239
  credentials = Rugged::Credentials::SshKey.new({
236
240
  :privatekey => Pathutil.new(repo[:key]).expand_path.to_s,
237
241
  :publickey => Pathutil.new(repo[:pub]).expand_path.to_s,
@@ -4,6 +4,6 @@
4
4
 
5
5
  module Docker
6
6
  module Template
7
- VERSION = "0.10.1"
7
+ VERSION = "0.11.0"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordon Bedwell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-06 00:00:00.000000000 Z
11
+ date: 2017-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor