fig-lock 0.0.2 → 0.0.3

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: 6bcf89eeb53d060edfce77f1e79144f60afb8ca0
4
- data.tar.gz: d4bc1693fe2b5ddde7301d4cccdd0613467ce9c0
3
+ metadata.gz: 4453dbec342b8d6c9cb86dbb7e340b83f44744c5
4
+ data.tar.gz: 7785f5c0d8a99c4b15f9e66559859db006583d73
5
5
  SHA512:
6
- metadata.gz: e4d061a66cda3c4d6f9ab2d7f1d45d9207a1921ecb83b9ef32a4dfbbc4c0eee5eadae0d3b933cdb247a1001fe063f1f82089aab5dda1b12269bfe3b8d36224bd
7
- data.tar.gz: 1b050ba684d4d1ca0973af8c1534bbc77afb75aea83b2acfc310995fa96f4cfa7e46e6eb8322328bce63095efd9b14723cf51c0a050b51e3ef54df740737f0da
6
+ metadata.gz: 2d4f8ce39f1e4b620523d36987d0cce5b17e343acdbf980d305557f7c5ffba1c2ee481821b11d9792ced5de6a352149f980ca2738fe80b050355830e35c73903
7
+ data.tar.gz: b39672201de01be9cdc7658ac9074069ed6f8b9273df04c2b8f7946c1a38224b810e1dcbbe9b1d3d517107b61722096dd654d3906bef4f405a888240997af3d2
data/lib/fig/lock.rb CHANGED
@@ -84,8 +84,9 @@ module Fig
84
84
  hash.each do |k,v|
85
85
  image = v['image']
86
86
  if image
87
+ image = "#{image}:latest" unless image.index(':')
87
88
  log.info "Fetching #{image} ..."
88
- system "sudo docker pull #{image}:latest"
89
+ system "sudo docker pull #{image}"
89
90
  fail "Unable to fetch image: #{image}.\n\tExit code:#{$?.exitstatus}" unless $?.exitstatus.zero?
90
91
  end
91
92
  end
@@ -1,5 +1,5 @@
1
1
  module Fig
2
2
  class Lock
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fig-lock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Shea