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 +4 -4
- data/lib/hako/container.rb +8 -6
- data/lib/hako/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: aa60150931b4feefab4ad228b97c82d3ba55ae15
|
4
|
+
data.tar.gz: 7acd8ff5d8d24a8582ec86191f96b2b1c01c3b59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cd2ecd94673857ac68323b2b2250f25587560d66873eea56fb926ac92496fd431fe342702f972cf44f31e7efb7119ef3f28f4328f5b06eea40766c999ae7ddc
|
7
|
+
data.tar.gz: 1e77d755d310a60c7fb8981de62026ff805cad5b43f44b019052f8832dc280788548a777d6a709033b5af80827e6b6626b1575205f4b5e1283cdac7360565ae7
|
data/lib/hako/container.rb
CHANGED
@@ -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 =
|
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