kubert 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kubert/configuration.rb +11 -7
- data/lib/kubert/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: 5a48f7be48ba0ad0d984d96c6c242459b8e916be
|
4
|
+
data.tar.gz: 2b394742575116b4b043499622bcbdfd48b4c307
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7711ecb107f07f4ec8d3bc629d828cd6ba0fd62ea36fd30ace92e36cb964f09831e0fae9a9d4e4a96ad22173efffd15dd256e559ca6adfff29be8feba9b5c6b1
|
7
|
+
data.tar.gz: d74194abc1e61bca965ab9b09f44e9e6e16d2dc1930e56c7f8da4fe3141120fde04ac4b831d530cc542af66703a15fdf40f9ca8917ac3d386d035344b57b5609
|
data/lib/kubert/configuration.rb
CHANGED
@@ -32,18 +32,23 @@ module Kubert
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def ky_configuration(options={})
|
35
|
-
@ky_configuration ||= KY::Configuration.new(
|
35
|
+
@ky_configuration ||= KY::Configuration.new(
|
36
|
+
{environment: Kubert.default_environment,
|
37
|
+
namespace: Kubert.default_namespace
|
38
|
+
}.with_indifferent_access.merge(options)
|
39
|
+
)
|
36
40
|
end
|
37
41
|
|
38
42
|
def ky_active?
|
39
|
-
|
43
|
+
ky_default_configuration[:image] && ky_default_configuration[:deployment] && ky_default_configuration[:procfile_path]
|
44
|
+
end
|
45
|
+
|
46
|
+
def ky_default_configuration
|
47
|
+
@ky_default_configuration ||= KY::Configuration.new
|
40
48
|
end
|
41
49
|
|
42
50
|
def configuration
|
43
|
-
@configuration ||=
|
44
|
-
temp_ky_configuration = KY::Configuration.new
|
45
|
-
(temp_ky_configuration[:kubert] || {}).merge(project_name: temp_ky_configuration[:project_name])
|
46
|
-
end
|
51
|
+
@configuration ||= (ky_default_configuration[:kubert] || {}).merge(project_name: ky_default_configuration[:project_name])
|
47
52
|
end
|
48
53
|
|
49
54
|
def config_file_name
|
@@ -76,6 +81,5 @@ module Kubert
|
|
76
81
|
.split("-")
|
77
82
|
.first
|
78
83
|
end
|
79
|
-
|
80
84
|
end
|
81
85
|
end
|
data/lib/kubert/version.rb
CHANGED