kubernetes-deploy 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kubernetes-deploy/kubernetes_resource.rb +14 -1
- data/lib/kubernetes-deploy/kubernetes_resource/deployment.rb +0 -1
- data/lib/kubernetes-deploy/kubernetes_resource/pod.rb +1 -1
- data/lib/kubernetes-deploy/runner.rb +1 -1
- data/lib/kubernetes-deploy/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a66de972d0f1d21cd2034ef65b2e5e30f2152e91
|
4
|
+
data.tar.gz: 207ecb8b75891de54c30acba082d55f85a9e3272
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4294f06b1cc979131b412a7a546aaf36c4793ef2921e641a0760bb93f24caca238781e27ae1d89b8eef47a90977ab2f78ec65cf4310440c023c0249de574cb26
|
7
|
+
data.tar.gz: 5a58d96ef5154fc75f46ca155aefa55b3b056ff1c51ee153e1e588565c10465d5214ce79b14c6da66d46154a103f9f54196a2a3de4a6ce0b788cb924919b0c51
|
@@ -4,6 +4,19 @@ require 'shellwords'
|
|
4
4
|
|
5
5
|
module KubernetesDeploy
|
6
6
|
class KubernetesResource
|
7
|
+
def self.logger=(value)
|
8
|
+
@logger = value
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.logger
|
12
|
+
@logger ||= begin
|
13
|
+
l = Logger.new($stderr)
|
14
|
+
l.formatter = proc do |_severity, _datetime, _progname, msg|
|
15
|
+
"#{msg}\n"
|
16
|
+
end
|
17
|
+
l
|
18
|
+
end
|
19
|
+
end
|
7
20
|
|
8
21
|
attr_reader :name, :namespace, :file, :context
|
9
22
|
attr_writer :type, :deploy_started
|
@@ -112,7 +125,7 @@ module KubernetesDeploy
|
|
112
125
|
end
|
113
126
|
|
114
127
|
def log_status
|
115
|
-
|
128
|
+
KubernetesResource.logger.info("[KUBESTATUS][#{@context}][#{@namespace}] #{JSON.dump(status_data)}")
|
116
129
|
end
|
117
130
|
end
|
118
131
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kubernetes-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kir Shatrov
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-02-
|
13
|
+
date: 2017-02-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
119
|
rubyforge_project:
|
120
|
-
rubygems_version: 2.
|
120
|
+
rubygems_version: 2.6.10
|
121
121
|
signing_key:
|
122
122
|
specification_version: 4
|
123
123
|
summary: Kubernetes deploy scripts
|