cangallo 0.0.6 → 0.0.7

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: 905207cbfc1c82a8545d9987dc227509c0a4c6ae
4
- data.tar.gz: 761fb7eaa2ffe859286e3ddf3f4b75eb11d7d24a
3
+ metadata.gz: 92d5dbc3bd85622cf2708703e77d9bce21da6f1a
4
+ data.tar.gz: 49f60d6f12193cd20ac0cddd58ac18d769d55818
5
5
  SHA512:
6
- metadata.gz: 6cd3e3087be5460335015af5dfc514eb3949e7cd071b270f4ab2218f20e94e5a89571fe9f02a1fc085bcc399a181b799d0779ac1db7396270156d29955019a24
7
- data.tar.gz: a70994517eb3d363df3ee5acd895365a3d5a05cff339e272682052a2374bfe52c358a683d3bf87bb4b6a1781647768a62902ba14dd8e629290dabed5ad7c44cc
6
+ metadata.gz: 61be348efbbbd0424f3a5399a3c4d35413412a8d8fad51d11201f02cb1eeb30dbaa9a8b9a643b0803c75f7c2a8ec6aabaab42a06fe9ad8e899cb9fd4bc99ce59
7
+ data.tar.gz: cc790a4489b18d86440763f211a9dadb6f563147e7949ebc8fda233079fbabe6d68caace9f9d4502ef1fbb399cfbe6390a5f2d7054c9ec21049a47b9f7f38fc3
data/bin/canga CHANGED
@@ -31,6 +31,7 @@ $cangallo = Cangallo.new
31
31
 
32
32
  class Canga < Thor
33
33
  map ['--version', '-V'] => :__print_version
34
+ map 'rm' => :del, 'rmtag' => :deltag
34
35
 
35
36
  desc "--version, -V", "show version"
36
37
  def __print_version
data/lib/cangallo/repo.rb CHANGED
@@ -157,9 +157,18 @@ class Cangallo
157
157
  raise %Q{Image "#{image}" does not exist} if !sha256
158
158
 
159
159
  path = image_path(sha256)
160
- File.delete(path)
160
+ begin
161
+ File.delete(path)
162
+ rescue Errno::ENOENT
163
+ STDERR.puts "Image file not found"
164
+ end
161
165
 
162
166
  @images.delete(sha256)
167
+
168
+ @tags.select {|key, value| value == sha256 }.keys.each do |tag|
169
+ @tags.delete(tag)
170
+ end
171
+
163
172
  write_index
164
173
  end
165
174
 
@@ -16,5 +16,5 @@
16
16
  # limitations under the License.
17
17
 
18
18
  class Cangallo
19
- VERSION = '0.0.6'
19
+ VERSION = '0.0.7'
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cangallo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Fontan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-06 00:00:00.000000000 Z
11
+ date: 2017-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -75,9 +75,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.5.2
78
+ rubygems_version: 2.6.8
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Cangallo!!
82
82
  test_files: []
83
- has_rdoc: