vidar 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15dd45da7e16f58b688350d8767d8445b674c7173b2f01c46f788cc9b79b2d0f
4
- data.tar.gz: 469802aede88c5d866e18c689309b96f94d34d06176bed6f2918fac0409f304c
3
+ metadata.gz: e551ad2b351be2babec27408de1cbd80077588b20ee985a08799f5d1ae6d9e50
4
+ data.tar.gz: 1e755c67d4b49d16ffb1cd1dbf89a2a45d103f1e9dc37302da50bc101f50f0a0
5
5
  SHA512:
6
- metadata.gz: fdb7dddf5d6e845358ae7fb475023e3adf5569c833c6e797c195d14c6a12cf6f55b173632b6c84800e12331800f7521e294b9b23a827e34c73ba7ec4477f75a6
7
- data.tar.gz: b00c62880fe67ed0ea65a1c24b849a6cb7feb8b6565c57496b8a918b6bc85ab6a56fb6f4ca1edfccb0182c40d7a1adbdcb43a65348200ae409055b2b8509f30c
6
+ metadata.gz: 8466e2072883d709cc87e416da3785a77629ed2ab36b26626a968f8f94c03f68d3fe7d5fed66d4fa28fe69fea68d1a919202023a9db4fdfdec84bdb2ae62698e
7
+ data.tar.gz: 5a49e48d5261c17958c875855f9ab46987ef5e6b72579a26be35a406ff7fce1caea872593c28682cac2800902a6aac49f6052d03a392ea07c75cebd92c694ba8
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vidar (0.9.0)
4
+ vidar (0.10.0)
5
5
  colorize
6
6
  faraday
7
7
  thor (~> 0.20)
@@ -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
- sentry_notification.call if sentry_notification.configured?
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
@@ -1,3 +1,3 @@
1
1
  module Vidar
2
- VERSION = '0.9.0'.freeze
2
+ VERSION = '0.10.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Knapik