kubert 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b10631ed96955a9a447aeaf376dbd7e4ca077908
4
- data.tar.gz: 4fbf424aa122d476bb4043bc37ceb1066cffddf4
3
+ metadata.gz: 5a48f7be48ba0ad0d984d96c6c242459b8e916be
4
+ data.tar.gz: 2b394742575116b4b043499622bcbdfd48b4c307
5
5
  SHA512:
6
- metadata.gz: 38e72a5c366ff85f1e6b0b5e3964b537984b6d6503e579edc2d0e48fcf7e152302d550a588168944cb656688bba328b4a48e344b7b39f52dd1939576f33c49f0
7
- data.tar.gz: c6c36898f08d865f6f9fb441c01ec0400fd934d2b3f54b027ca4a2fd62d1a88f83b11bde2024860f8f3ce34da6de1f343ff8823e8c57d6fcc0fe611a51121c44
6
+ metadata.gz: 7711ecb107f07f4ec8d3bc629d828cd6ba0fd62ea36fd30ace92e36cb964f09831e0fae9a9d4e4a96ad22173efffd15dd256e559ca6adfff29be8feba9b5c6b1
7
+ data.tar.gz: d74194abc1e61bca965ab9b09f44e9e6e16d2dc1930e56c7f8da4fe3141120fde04ac4b831d530cc542af66703a15fdf40f9ca8917ac3d386d035344b57b5609
@@ -32,18 +32,23 @@ module Kubert
32
32
  end
33
33
 
34
34
  def ky_configuration(options={})
35
- @ky_configuration ||= KY::Configuration.new({environment: Kubert.default_environment, namespace: Kubert.default_namespace}.merge(options))
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
- ky_configuration[:image] && ky_configuration[:deployment] && ky_configuration[:procfile_path]
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 ||= begin
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
@@ -1,3 +1,3 @@
1
1
  module Kubert
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubert
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Glusman