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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rake_docker/container.rb +9 -5
- data/lib/rake_docker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e14613c5d49b9775931e36f6431304894528d3cb662effe802980777e952a694
|
4
|
+
data.tar.gz: 58cf54856a0b74a417f4464871e7847fcb66857995038931b23a1b7fb0acf17f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da5e174f396ff45c8c2afcc0dd4461183aceff2c54a414871bc5279ab8ac2372cb62fe491946e2f02e04c1a43ba0155c87ddc65ba87a98fd8c14dfa9d2693ff5
|
7
|
+
data.tar.gz: d010fae2478ff05485145dac9caf93256580eff5d76abea7603c83059428e172176f1b88546c92bf92a0a320150f7f9844bd38cd9a3b69ba4875efcbde432aef
|
data/Gemfile.lock
CHANGED
@@ -124,15 +124,18 @@ module RakeDocker
|
|
124
124
|
module Utilities
|
125
125
|
def find_container(name)
|
126
126
|
begin
|
127
|
-
|
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
|
data/lib/rake_docker/version.rb
CHANGED