metaparticle 0.0.0.4 → 0.0.0.5

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: b98de31638f67943cffb7a06a879b35f56818de2
4
- data.tar.gz: a8017288cd3ad7e22486c5e47640de9b6d7d6207
3
+ metadata.gz: 9b5fc7410834157239605c41792ecd172d012fc4
4
+ data.tar.gz: 49556bba40a884627afb6bb2f1b48e4cee2a5733
5
5
  SHA512:
6
- metadata.gz: a00c06655b176ef2ef0b3200fdaa31d6c776d5cf29c0f8242cdef639b7d604bfd529c00159ede529d4f16459dc16c708c7b32d65424d3fc76c604b45d49b5420
7
- data.tar.gz: d7c5b82b25eb53fb3c2c527ef82e7b96853c0268e701dae068281461cc66a16454b9ff38829239cba66056c4c42b814b9f483c917145cd7cdbc3f9f0b77ab2df
6
+ metadata.gz: dca50260cc5bd1c3ad31bef4448a04317a1f5658ec68b54ef361612d381334d4ea73f0ded75a42f9266c4d96b5cd4babf7b7f041f5dcfedccbe80684de99330b
7
+ data.tar.gz: dbddc0dbc6762c37e024e38125070b61da2cf41199828414524a5c1fdf1035fd057f4d795c34b5f2ab8b2bf5fd0c30fd14efb8d440068ea9c7ba9e62870ca946
@@ -6,23 +6,9 @@ require "metaparticle/metaparticle_runner"
6
6
 
7
7
  module Metaparticle
8
8
  class Base
9
- def initialize(app, *args, &block)
10
- @app = app
11
- if block_given?
12
- if block.arity == 1
13
- block.call(self)
14
- else
15
- instance_eval(&block)
16
- end
17
- end
18
- end
19
-
20
- def call(env)
21
- @app.call(env)
22
- end
23
-
24
- def containerize(&block)
25
- @config = OpenStruct.new(block.call)
9
+ def initialize(config, &block)
10
+ @config = OpenStruct.new(config)
11
+ @app = block
26
12
  run!
27
13
  end
28
14
 
@@ -66,7 +52,7 @@ CMD rackup
66
52
 
67
53
  def run!
68
54
  if docker.in_docker_container?
69
- puts "in container..."
55
+ @app.call
70
56
  end
71
57
  @config.image = "#{@config.repository}/#{@config.name}"
72
58
  write_dockerfile
@@ -1,3 +1,3 @@
1
1
  module Metaparticle
2
- VERSION = "0.0.0.4"
2
+ VERSION = "0.0.0.5"
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.4
4
+ version: 0.0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Hein