opswalrus 1.0.83 → 1.0.85

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: daeb402747f507d861769c7c4904dd5d2105c1b3348e79284c45a0562f955db3
4
- data.tar.gz: 8981d2ea29accbaeab6836cf0589a8311750bb58dab53b9abc74db747a91d204
3
+ metadata.gz: a98ac5f7f3dce70141e10defbfb6e6ed50c8f2439e219c4e0af3d2939fa39621
4
+ data.tar.gz: 81098411ad23c3175055066dd75781aa45ce2672ee03f0367e66f5bcc5a22f7c
5
5
  SHA512:
6
- metadata.gz: 2ddaf981ef7a21149f43253f14226e7124292c1dfb7367d8e620b4041f42bfa132f7ad695aa73dd2eda4319110a0032e76fa011c8716c2c588845ff546b9995a
7
- data.tar.gz: c726d7b15f2f1d7ec8cd7fab00bf4bf36131792d0f1a1c7ba9b008d00cc4ba0f77cd1d3d240ac47f7c2f8355d809178e1c7568b68a93d5d1db52bf51f9db7a61
6
+ metadata.gz: 5b5379e9a9a8b257676babc472070c8c27565fd139dee985a29982b4e154bf41ab1570a23cb121fbbf54f49259811b378acfd6b69d80823a8117a4cb8b320a16
7
+ data.tar.gz: 394e28ccc7db130788c358cf68c40554b1c34507b18f67fbe2f2a930947b144154c8b9e305f327711d61eb55d980e788248b2e472af5598dfd5446c0fd6db572
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opswalrus (1.0.83)
4
+ opswalrus (1.0.85)
5
5
  activesupport (~> 7.0)
6
6
  bcrypt_pbkdf (~> 1.1)
7
7
  binding_of_caller (~> 1.0)
data/lib/opswalrus/app.rb CHANGED
@@ -239,7 +239,9 @@ module OpsWalrus
239
239
  puts output
240
240
  exit_status
241
241
  rescue Error => e
242
- puts "Error: #{e.message}"
242
+ message = "Runtime error: #{e.message}"
243
+ puts message
244
+ print_script_result(message)
243
245
  1
244
246
  end
245
247
 
@@ -269,7 +271,9 @@ module OpsWalrus
269
271
 
270
272
  exit_status
271
273
  rescue Error => e
272
- puts "Error: #{e.message}"
274
+ message = "Runtime error: #{e.message}"
275
+ puts message
276
+ print_script_result(message)
273
277
  1
274
278
  ensure
275
279
  FileUtils.remove_entry(tmp_bundle_root_dir) if tmp_bundle_root_dir
@@ -299,7 +303,9 @@ module OpsWalrus
299
303
 
300
304
  exit_status
301
305
  rescue Error => e
302
- puts "Error: #{e.message}"
306
+ message = "Runtime error: #{e.message}"
307
+ puts message
308
+ print_script_result(message)
303
309
  1
304
310
  ensure
305
311
  FileUtils.remove_entry(tmp_bundle_root_dir) if tmp_bundle_root_dir
@@ -307,6 +313,7 @@ module OpsWalrus
307
313
 
308
314
  def print_script_result(result)
309
315
  if script_mode?
316
+ SemanticLogger.flush
310
317
  output = StringIO.open do |io|
311
318
  io.puts SCRIPT_RESULT_HEADER
312
319
  io.puts JSON.pretty_generate(result.value)
@@ -1,3 +1,3 @@
1
1
  module OpsWalrus
2
- VERSION = "1.0.83"
2
+ VERSION = "1.0.85"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opswalrus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.83
4
+ version: 1.0.85
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Ellis