linecook-gem 0.7.0 → 0.7.1

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: 4f0a7a7d8d39c7428d53070807e962a4dfd8bdd9
4
- data.tar.gz: 46f4d3352064af2c1e79f7d74cf4a7c92205f8aa
3
+ metadata.gz: 41f0ef28f092f4900a10da5a13ec5f4994413e95
4
+ data.tar.gz: 08cd2671ae59f15d34b4694cb32bf02404338494
5
5
  SHA512:
6
- metadata.gz: 7a94f90d4514e3c2f4f9414515cc01d4917b4ab9990f95ab9a9d37bad8fa6ded2e3a7793c6eb15f1994109a6f91205864601af862f763eeeccaa137b2e8622ca
7
- data.tar.gz: 517faebb8e971e65698ec12bc8ac03b06fced0d3d167a8d4eff45c4672883bf7a2e50dc29dd91cde7a2923c57839c9551c1fb1dd62ce403d533a110d92f00964
6
+ metadata.gz: 1de320f3f6916ab1897c7c4e7bc826ca4761b08638b772e8b88e0e6688cd08641600b2f71016699596a90e48773b5368f82cdd8da94ccc8905cde7e610a23316
7
+ data.tar.gz: 94328e65a381bd63c0bba48b98a9631244c71618ddd915c3946c95ba411a3d55606268601e3fa10e050a30524ebbe50492b9bad8ba0bcd69e63077b037817471
@@ -73,8 +73,14 @@ module Linecook
73
73
  def clean_older_images(image)
74
74
  puts "Cleaning up older images for #{image.group}..."
75
75
  older_images(image).each do |old|
76
- puts "Removing #{old.info['RepoTags'].first}"
77
- old.remove(force: true)
76
+ id = old.info['RepoTags'].first
77
+ puts "Removing #{id}"
78
+ begin
79
+ old.remove(force: true)
80
+ rescue Docker::Error::ConflictError => e
81
+ puts "Failed to remove #{id}"
82
+ puts e.message
83
+ end
78
84
  end
79
85
  end
80
86
 
@@ -1,3 +1,3 @@
1
1
  module Linecook
2
- VERSION = '0.7.0'
2
+ VERSION = '0.7.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linecook-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Hamel