specinfra 2.37.1 → 2.37.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22dfa4b5d10ab5078650debbcd349e5961dc1868
4
- data.tar.gz: 74ac679ad80b11b8a746cb5506405762202776bc
3
+ metadata.gz: db8a2ecb380af0a3a81d1f00858324a92b87b209
4
+ data.tar.gz: e02f6f32c7526b1dd50adb6af15250f043d12194
5
5
  SHA512:
6
- metadata.gz: 48dbcfaa1955436e18da624e5b1027bf49dec11aa2f0cd9d6856c574e19dc43f94b1d4d45e09a6a9c61ef9195d0b5d03f99f31833bf221aebcff17982e7c8870
7
- data.tar.gz: 9802bcb0b7a31a507a47b61f99a22dbb8114847a7c1a65a077522a0f78bb6581520ba6024a930f12472bf9fbf87686b2e527e36e544ca2f7ced459504bf92ca4
6
+ metadata.gz: 20c7c7496f69c266e6926f766fe5b519726ea1b7bf8ca1ac876af3fb3f41e8a38d60ef477b0f98bec46062103fc223230bc46db957a4fbd99eab5e8cbd0781fe
7
+ data.tar.gz: c7eb3b7cfd0f9a8d739c4a83d0ac0bfb8f42da43e9ecfe6630724b00126e4f3ea0ca3e22c8d88c35f84e9c23db03fffb6086f75d73ffd4b4931d138600b74c2e
@@ -6,6 +6,29 @@ module Specinfra
6
6
  if backend.run_command('ls /.dockerinit').success?
7
7
  res[:system] = 'docker'
8
8
  end
9
+
10
+ if backend.run_command('ls /usr/sbin/dmidecode').success?
11
+ ret = backend.run_command('dmidecode')
12
+ if ret.exit_status == 0
13
+ case ret.stdout
14
+ when /Manufacturer: VMware/
15
+ if ret.stdout =~ /Product Name: VMware Virtual Platform/
16
+ res[:system] = 'vmware'
17
+ end
18
+ when /Manufacturer: Oracle Corporation/
19
+ if ret.stdout =~ /Product Name: VirtualBox/
20
+ res[:system] = 'vbox'
21
+ end
22
+ when /Product Name: OpenStack/
23
+ res[:system] = 'openstack'
24
+ else
25
+ nil
26
+ end
27
+ else
28
+ nil
29
+ end
30
+ end
31
+
9
32
  res
10
33
  end
11
34
  end
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.37.1"
2
+ VERSION = "2.37.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.37.1
4
+ version: 2.37.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-09 00:00:00.000000000 Z
11
+ date: 2015-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp