fog-vsphere 0.6.2 → 0.6.3
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5695c11ae716df2037c0d47f2baa7cb98c5ef620
|
4
|
+
data.tar.gz: c530a589499f51aad79df45d8ec722ac990bff7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4824a270319a970c19bb3888f503a14be30c83c8eaa822e0f9406f6722207555bc26f9619a10b03e06dd5c10ab48ab1d82d8961b90c4969cb26681dfed93404
|
7
|
+
data.tar.gz: ac5385e81e89ad1734ad73aa5c6d7e2bc9daf828e32efcfd55298d9dc2bb4f0c2535804f41ddb06bfae42a030472ae68f1409f69ca121676161dad8e15940422
|
@@ -159,8 +159,7 @@ module Fog
|
|
159
159
|
end
|
160
160
|
|
161
161
|
def tools_installed?
|
162
|
-
tools_state
|
163
|
-
tools_version != 'guestToolsNotInstalled'
|
162
|
+
!(tools_state == 'toolsNotInstalled' || tools_version == 'guestToolsNotInstalled')
|
164
163
|
end
|
165
164
|
|
166
165
|
def tools_running?
|
data/lib/fog/vsphere/version.rb
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
require_relative '../../helper'
|
2
|
+
|
3
|
+
require 'fog/vsphere/models/compute/server'
|
4
|
+
|
5
|
+
class TestServer < Minitest::Test
|
6
|
+
def test_tools_installed
|
7
|
+
server = Fog::Compute::Vsphere::Server.new
|
8
|
+
server.tools_state = 'toolsNotRunning'
|
9
|
+
server.tools_version = 'guestToolsNotInstalled'
|
10
|
+
|
11
|
+
assert_equal(false, server.tools_installed?)
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-vsphere
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- J.R. Garcia
|
@@ -251,6 +251,7 @@ files:
|
|
251
251
|
- tests/helpers/succeeds_helper.rb
|
252
252
|
- tests/models/compute/rules_tests.rb
|
253
253
|
- tests/models/compute/server_tests.rb
|
254
|
+
- tests/models/compute/server_unit_tests.rb
|
254
255
|
- tests/models/compute/servers_tests.rb
|
255
256
|
- tests/requests/compute/current_time_tests.rb
|
256
257
|
- tests/requests/compute/folder_destroy_tests.rb
|
@@ -308,6 +309,7 @@ test_files:
|
|
308
309
|
- tests/helpers/succeeds_helper.rb
|
309
310
|
- tests/models/compute/rules_tests.rb
|
310
311
|
- tests/models/compute/server_tests.rb
|
312
|
+
- tests/models/compute/server_unit_tests.rb
|
311
313
|
- tests/models/compute/servers_tests.rb
|
312
314
|
- tests/requests/compute/current_time_tests.rb
|
313
315
|
- tests/requests/compute/folder_destroy_tests.rb
|