panoramix 0.7.13 → 0.7.14

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.
@@ -22,7 +22,10 @@ module Panoramix
22
22
  shell "docker pull #{@src}" unless ENV["NO_PULL"]
23
23
 
24
24
  # Tag image with required tag
25
- shell "docker tag -f #{@src} #{@dst}"
25
+ shell "docker tag #{@src} #{@dst}"
26
+
27
+ # Remove origin image
28
+ shell "docker rmi #{@src}"
26
29
  end
27
30
 
28
31
  def ps
@@ -18,7 +18,7 @@ module Panoramix
18
18
  info = created?
19
19
  if info
20
20
  # Get image timestamp
21
- id = info.split(" ")[2]
21
+ id = info.split(" ")[0]
22
22
  time = shell("docker inspect -f {{.Created}} #{id}", true)[:out]
23
23
  return Time.parse(time)
24
24
  else
@@ -34,7 +34,6 @@ module Panoramix
34
34
 
35
35
  images_list = info.split("\n")
36
36
  images_list.shift
37
-
38
37
  image_info = images_list.select {|img| img.match(/#{@dst}\s+#{@tag}/) }
39
38
 
40
39
  @created = info = info.empty? ? nil: image_info[0]
@@ -44,7 +43,7 @@ module Panoramix
44
43
  def clobber
45
44
  info = created?
46
45
  if info
47
- id = info.split(" ")[2]
46
+ id = info.split(" ")[0]
48
47
  shell "docker rmi -f #{id}"
49
48
  end
50
49
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panoramix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.13
4
+ version: 0.7.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-10 00:00:00.000000000 Z
12
+ date: 2016-02-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pry
@@ -113,25 +113,25 @@ executables: []
113
113
  extensions: []
114
114
  extra_rdoc_files: []
115
115
  files:
116
- - lib/panoramix/dsl.rb
117
- - lib/panoramix/tasks/global_tasks.rb
118
- - lib/panoramix/tasks/task_mpi.rb
119
- - lib/panoramix/tasks/actions.rb
116
+ - lib/panoramix.rb
117
+ - lib/panoramix/locale.rb
118
+ - lib/panoramix/plugin/cfn.rb
120
119
  - lib/panoramix/plugin/docker_image.rb
121
- - lib/panoramix/plugin/base.rb
122
- - lib/panoramix/plugin/env.rb
123
- - lib/panoramix/plugin/docker_image_base.rb
124
120
  - lib/panoramix/plugin/docker_up.rb
125
- - lib/panoramix/plugin/docker_build.rb
126
121
  - lib/panoramix/plugin/s3.rb
127
- - lib/panoramix/plugin/cfn.rb
128
122
  - lib/panoramix/plugin/git.rb
123
+ - lib/panoramix/plugin/base.rb
124
+ - lib/panoramix/plugin/env.rb
125
+ - lib/panoramix/plugin/docker_build.rb
126
+ - lib/panoramix/plugin/docker_image_base.rb
129
127
  - lib/panoramix/plugin/wget.rb
130
- - lib/panoramix/locale.rb
131
- - lib/panoramix/mpi.rb
128
+ - lib/panoramix/dsl.rb
132
129
  - lib/panoramix/external.rb
130
+ - lib/panoramix/tasks/task_mpi.rb
131
+ - lib/panoramix/tasks/global_tasks.rb
132
+ - lib/panoramix/tasks/actions.rb
133
+ - lib/panoramix/mpi.rb
133
134
  - lib/panoramix/panoramix_core.rb
134
- - lib/panoramix.rb
135
135
  - locales/en.yml
136
136
  homepage: https://github.com/sflyr
137
137
  licenses: