vidar 0.9.0 → 0.10.0
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/vidar/cli.rb +11 -6
- data/lib/vidar/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e551ad2b351be2babec27408de1cbd80077588b20ee985a08799f5d1ae6d9e50
|
|
4
|
+
data.tar.gz: 1e755c67d4b49d16ffb1cd1dbf89a2a45d103f1e9dc37302da50bc101f50f0a0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8466e2072883d709cc87e416da3785a77629ed2ab36b26626a968f8f94c03f68d3fe7d5fed66d4fa28fe69fea68d1a919202023a9db4fdfdec84bdb2ae62698e
|
|
7
|
+
data.tar.gz: 5a49e48d5261c17958c875855f9ab46987ef5e6b72579a26be35a406ff7fce1caea872593c28682cac2800902a6aac49f6052d03a392ea07c75cebd92c694ba8
|
data/Gemfile.lock
CHANGED
data/lib/vidar/cli.rb
CHANGED
|
@@ -118,11 +118,6 @@ module Vidar
|
|
|
118
118
|
deploy_config: deploy_config
|
|
119
119
|
)
|
|
120
120
|
|
|
121
|
-
sentry_notification = SentryNotification.new(
|
|
122
|
-
revision: Config.get!(:revision),
|
|
123
|
-
deploy_config: deploy_config
|
|
124
|
-
)
|
|
125
|
-
|
|
126
121
|
deploy_status = Vidar::DeployStatus.new(namespace: Config.get!(:namespace))
|
|
127
122
|
|
|
128
123
|
deploy_status.wait_until_completed
|
|
@@ -130,7 +125,7 @@ module Vidar
|
|
|
130
125
|
if deploy_status.success?
|
|
131
126
|
Log.info "OK: All containers are ready"
|
|
132
127
|
slack_notification.success if slack_notification.configured?
|
|
133
|
-
|
|
128
|
+
invoke :notify_sentry
|
|
134
129
|
else
|
|
135
130
|
Log.error "ERROR: Some of containers are errored or not ready"
|
|
136
131
|
slack_notification.failure if slack_notification.configured?
|
|
@@ -171,5 +166,15 @@ module Vidar
|
|
|
171
166
|
def console
|
|
172
167
|
invoke :kube_exec, name: options[:name], command: options[:command] || Config.get!(:kubectl_context)
|
|
173
168
|
end
|
|
169
|
+
|
|
170
|
+
desc "notify_sentry", "Notify sentry about current release"
|
|
171
|
+
def notify_sentry
|
|
172
|
+
sentry_notification = SentryNotification.new(
|
|
173
|
+
revision: Config.get!(:revision),
|
|
174
|
+
deploy_config: Config.deploy_config
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
sentry_notification.call if sentry_notification.configured?
|
|
178
|
+
end
|
|
174
179
|
end
|
|
175
180
|
end
|
data/lib/vidar/version.rb
CHANGED