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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c6fed02f5995ca0c456b3b68661b2fdb8a7f259
4
- data.tar.gz: 57c296996c69a16c634443725bb64c625f6e8a32
3
+ metadata.gz: 4943c8457fed9a05f65a49adedf8dfef7619884b
4
+ data.tar.gz: 95e102d3bbd6b055ffb25419cd27aa744a1c068d
5
5
  SHA512:
6
- metadata.gz: 5cc82150f451b704e0ea4e9a648373e5dce218761bf65f17ac7e7ca38078a9366ae1274c1ddf6b2a4a11594913117dac935584ef44661d62f28282d6ce9ac277
7
- data.tar.gz: 3d5b3c5fafb48a4994d50467b7da26c482c1f620a62999f1e31f525f39514fa6f72c30d8918156efbffc8cb8b625fd5cda1a2c653062eef4cf852abab8ae94f6
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
@@ -1,3 +1,3 @@
1
1
  module Metaparticle
2
- VERSION = "0.0.0.6"
2
+ VERSION = "0.0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metaparticle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.6
4
+ version: 0.0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Hein