metaparticle 0.0.0.6 → 0.0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/metaparticle/docker_runner.rb +9 -0
- data/lib/metaparticle/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4943c8457fed9a05f65a49adedf8dfef7619884b
|
4
|
+
data.tar.gz: 95e102d3bbd6b055ffb25419cd27aa744a1c068d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a014443fe16f2d3f222c24440ac03828847c7f111d10bb92071d5c666ac589bb3c55481eb7659bbae1e505cd0ff71c331a44a27c5ff031d6e744810b34859955
|
7
|
+
data.tar.gz: 67c6fb2a4c8b1898ce1de3bb1a1d553c4cf7702a496b4dd791f8edfe497d176e2b2df6a43ead44f8606138f592e9d4b8d4acdf376d8d1185d403367ffaeace5f
|
@@ -3,5 +3,14 @@ module Metaparticle
|
|
3
3
|
def initialize(config)
|
4
4
|
@config = config
|
5
5
|
end
|
6
|
+
|
7
|
+
def run
|
8
|
+
`docker run --name #{@config.name} #{port_string} #{image}`
|
9
|
+
end
|
10
|
+
|
11
|
+
private
|
12
|
+
def port_string
|
13
|
+
@port_string = @config.ports.map {|port| "-p #{port}:#{port}" }.join(" ")
|
14
|
+
end
|
6
15
|
end
|
7
16
|
end
|
data/lib/metaparticle/version.rb
CHANGED