ovfparse 0.9.2.3 → 0.9.2.4
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.
- data/lib/ovfparse/vmpackage.rb +0 -20
- metadata +3 -3
data/lib/ovfparse/vmpackage.rb
CHANGED
|
@@ -203,26 +203,6 @@ class VmPackage
|
|
|
203
203
|
return osNode.nil? ? '' : osNode['id']
|
|
204
204
|
end
|
|
205
205
|
|
|
206
|
-
def getVmOS_Username
|
|
207
|
-
osNode = getChildByName(virtualSystem, 'OperatingSystemSection')
|
|
208
|
-
if osNode == nil then
|
|
209
|
-
return ''
|
|
210
|
-
else
|
|
211
|
-
userNode = getChildByName(osNode, 'Username')
|
|
212
|
-
return userNode.nil? ? '' : userNode.content
|
|
213
|
-
end
|
|
214
|
-
end
|
|
215
|
-
|
|
216
|
-
def getVmOS_Password
|
|
217
|
-
osNode = getChildByName(virtualSystem, 'OperatingSystemSection')
|
|
218
|
-
if osNode == nil then
|
|
219
|
-
return ''
|
|
220
|
-
else
|
|
221
|
-
passNode = getChildByName(osNode, 'Password')
|
|
222
|
-
return passNode.nil? ? '' : passNode.content
|
|
223
|
-
end
|
|
224
|
-
end
|
|
225
|
-
|
|
226
206
|
def getVmOS
|
|
227
207
|
os = getVmOS_ID
|
|
228
208
|
return os == '' ? '' : OS_ID_TABLE[os.to_i]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ovfparse
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 7
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 9
|
|
9
9
|
- 2
|
|
10
|
-
-
|
|
11
|
-
version: 0.9.2.
|
|
10
|
+
- 4
|
|
11
|
+
version: 0.9.2.4
|
|
12
12
|
platform: ruby
|
|
13
13
|
authors:
|
|
14
14
|
- Jim Barkley
|