vmware_web_service 2.1.0 → 2.1.1

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: 4d5a7058d7db794775f6a27766ae62dc2e17b6334d3d69c3dce8dc73df888906
4
- data.tar.gz: 2b1fc2a2d07776d19c995cdc56e271d9bf14303534960c5f60a2d9b3f85b7429
3
+ metadata.gz: dec8c1bf5bd2dd9fc8d00e057e146cf7dea54c2cbcfe5c500f71389e333d6de4
4
+ data.tar.gz: 331dbc8f7400e12b2a3a5c1c3dd7b474db1880be659a9e182112b23c8278b817
5
5
  SHA512:
6
- metadata.gz: f6a4bfefe875d792e2020d087cb913f2a418515ebb5a05a8f60814781227405b58985bd33e091d856ac28777658675aa8507a57b4975ff87d48a3966b0255c9b
7
- data.tar.gz: 93543cf64a0c43a43ea82b585418f9e95cb4e4c2f367b3aac5969b753b47a75799520734951aa38731b0a2f2f9dbbf3b69b72cae7c402aadb03313e15e3766eb
6
+ metadata.gz: 73e001def303f702ad26815843ec3b0fc25cbdfa26fb4c796cdec1e333e4a6fb8c0357cf86ce8ea31e076401b9e1729d41555d1668e296d46a4aea7bd59bdf1b
7
+ data.tar.gz: 5e91e171b1d568f6b1920a29ef69161eeebc9accd1261e3e93b7cab58a126f890266013552f23e98c24c1088646512dd97e91b7b08ee52ff4e959f011e33b192
@@ -96,7 +96,8 @@ class VixDiskLib
96
96
 
97
97
  my_env["LD_LIBRARY_PATH"] = (my_env["LD_LIBRARY_PATH"].to_s.split(':') << VIXDISKLIB_PATH).compact.join(":")
98
98
  raise VixDiskLibError, "VixDiskLib.connect() failed: No $vim_log defined" unless $vim_log
99
- my_env["LOG_FILE"] = $vim_log.logdev.filename.to_s
99
+ my_env["LOG_FILE"] = $vim_log.logdev.filename.to_s if $vim_log.logdev.kind_of?(Logger::LogDevice)
100
+
100
101
  my_env
101
102
  end
102
103
 
@@ -109,9 +110,12 @@ class VixDiskLib
109
110
  proc_reader, @proc_writer = IO.pipe
110
111
 
111
112
  server_cmd = "ruby #{SERVER_PATH}/VixDiskLibServer.rb"
113
+ log_target = my_env["LOG_FILE"] ? [my_env["LOG_FILE"], "a"] : $stdout
114
+
112
115
  $vim_log.info "VixDiskLib.start_service: running command = #{server_cmd}"
116
+
113
117
  pid = Kernel.spawn(my_env, server_cmd,
114
- [:out, :err] => [my_env["LOG_FILE"], "a"],
118
+ [:out, :err] => log_target,
115
119
  :unsetenv_others => true,
116
120
  3 => uri_writer,
117
121
  4 => proc_reader)
@@ -11,9 +11,7 @@ require 'VMwareWebService/VixDiskLib/vdl_wrapper'
11
11
  class VixDiskLibError < RuntimeError
12
12
  end
13
13
 
14
- LOG_FILE = ENV["LOG_FILE"]
15
-
16
- $vim_log = Logger.new LOG_FILE
14
+ $vim_log = Logger.new $stdout
17
15
 
18
16
  class VDDKFactory
19
17
  include DRb::DRbUndumped
@@ -4,9 +4,7 @@ require 'ffi-vix_disk_lib/api_wrapper'
4
4
  require 'VMwareWebService/VimTypes'
5
5
  require 'time'
6
6
 
7
- LOG_FILE = ENV["LOG_FILE"]
8
-
9
- $vim_log = Logger.new LOG_FILE
7
+ $vim_log = Logger.new $stdout
10
8
 
11
9
  VixDiskLibApi = FFI::VixDiskLib::ApiWrapper
12
10
  class VdlWrapper
@@ -1,3 +1,3 @@
1
1
  module VMwareWebService
2
- VERSION = '2.1.0'.freeze
2
+ VERSION = '2.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmware_web_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2021-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -4460,7 +4460,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
4460
4460
  - !ruby/object:Gem::Version
4461
4461
  version: '0'
4462
4462
  requirements: []
4463
- rubygems_version: 3.2.0.rc.2
4463
+ rubygems_version: 3.2.5
4464
4464
  signing_key:
4465
4465
  specification_version: 4
4466
4466
  summary: A ruby interface to Vmware Web Services SDK