hako 0.6.0 → 0.6.1

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: 1e64f878fa8086ac6bbf25618270783b624a0c3d
4
- data.tar.gz: 3bd05c5d3570b3df3683bf96089ba27601e23eab
3
+ metadata.gz: aa60150931b4feefab4ad228b97c82d3ba55ae15
4
+ data.tar.gz: 7acd8ff5d8d24a8582ec86191f96b2b1c01c3b59
5
5
  SHA512:
6
- metadata.gz: 668a80d0f435cdd3ee046af0d3795567f32074fc68bcd8fb6afaec5cbd0023642414771a76c8441b7a7b0acc0d662e00e3cbd229137d068bb2e72a2d15ef8b75
7
- data.tar.gz: 88df5fc4b0c681f4fbce9422979f9d50cbde3742760940a9351380bffba3a2a30beae92326da39db808dc5fa58e067c0322acc9b2d1ee9f30b27c52a4b6c695d
6
+ metadata.gz: 0cd2ecd94673857ac68323b2b2250f25587560d66873eea56fb926ac92496fd431fe342702f972cf44f31e7efb7119ef3f28f4328f5b06eea40766c999ae7ddc
7
+ data.tar.gz: 1e77d755d310a60c7fb8981de62026ff805cad5b43f44b019052f8832dc280788548a777d6a709033b5af80827e6b6626b1575205f4b5e1283cdac7360565ae7
@@ -1,13 +1,8 @@
1
1
  module Hako
2
2
  class Container
3
- DEFAULT_CONFIG = {
4
- 'docker_labels' => {},
5
- 'links' => [],
6
- }.freeze
7
-
8
3
  def initialize(app, definition)
9
4
  @app = app
10
- @definition = DEFAULT_CONFIG.merge(definition)
5
+ @definition = default_config.merge(definition)
11
6
  end
12
7
 
13
8
  %w[
@@ -45,5 +40,12 @@ module Hako
45
40
  Loader.new(Hako::EnvProviders, 'hako/env_providers').load(yaml.fetch('type')).new(@app.root_path, yaml)
46
41
  end
47
42
  end
43
+
44
+ def default_config
45
+ {
46
+ 'docker_labels' => {},
47
+ 'links' => [],
48
+ }
49
+ end
48
50
  end
49
51
  end
data/lib/hako/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hako
2
- VERSION = '0.6.0'.freeze
2
+ VERSION = '0.6.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hako
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kohei Suzuki