rake_docker 2.4.0.pre.12 → 2.4.0.pre.13

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
  SHA256:
3
- metadata.gz: c66349ddcf53ffeffca534dd583e0ad66306cd09e7dc96968da9dd004c3fb8f8
4
- data.tar.gz: 1a8a538d4252c70cf7041f2dfa8febe6c10fa9512bdcfff7720b49f03dfcface
3
+ metadata.gz: e14613c5d49b9775931e36f6431304894528d3cb662effe802980777e952a694
4
+ data.tar.gz: 58cf54856a0b74a417f4464871e7847fcb66857995038931b23a1b7fb0acf17f
5
5
  SHA512:
6
- metadata.gz: ac89127f4c87c057528e6a46021e886b61afc1e0729cecb6ca7feb6a10a48f18de2d91a1d23f448f6cbb7d7a3a8d6032c821bb6ea6eb6278877a6c2ea95a27db
7
- data.tar.gz: 930a49b9d35e5abf57801862fcf074d51119a093c2d2bd780a48104d16b4e8562e816ed6a999652fb17c819266332228d1b9b093ed1af1b753110d4f681eec2d
6
+ metadata.gz: da5e174f396ff45c8c2afcc0dd4461183aceff2c54a414871bc5279ab8ac2372cb62fe491946e2f02e04c1a43ba0155c87ddc65ba87a98fd8c14dfa9d2693ff5
7
+ data.tar.gz: d010fae2478ff05485145dac9caf93256580eff5d76abea7603c83059428e172176f1b88546c92bf92a0a320150f7f9844bd38cd9a3b69ba4875efcbde432aef
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_docker (2.4.0.pre.12)
4
+ rake_docker (2.4.0.pre.13)
5
5
  aws-sdk-ecr (~> 1.2)
6
6
  colored2 (~> 3.1)
7
7
  docker-api (~> 1.34)
@@ -124,15 +124,18 @@ module RakeDocker
124
124
  module Utilities
125
125
  def find_container(name)
126
126
  begin
127
- container = Docker::Container.get(name)
128
- container.instance_eval do
129
- define_singleton_method(:name) { name }
130
- end
131
- container
127
+ enhance_with_name(Docker::Container.get(name), name)
132
128
  rescue Docker::Error::NotFoundError
133
129
  nil
134
130
  end
135
131
  end
132
+
133
+ def enhance_with_name(container, name)
134
+ container.instance_eval do
135
+ define_singleton_method(:name) { name }
136
+ end
137
+ container
138
+ end
136
139
  end
137
140
 
138
141
  class Provisioner
@@ -208,6 +211,7 @@ module RakeDocker
208
211
  PortBindings: port_bindings
209
212
  },
210
213
  Env: environment)
214
+ container = enhance_with_name(container, name)
211
215
  reporter.container_created(container)
212
216
  container
213
217
  end
@@ -1,3 +1,3 @@
1
1
  module RakeDocker
2
- VERSION = '2.4.0.pre.12'
2
+ VERSION = '2.4.0.pre.13'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_docker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0.pre.12
4
+ version: 2.4.0.pre.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson