specinfra 2.82.3 → 2.82.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/specinfra/command/esxi/base/package.rb +5 -1
- data/lib/specinfra/version.rb +1 -1
- data/spec/command/esxi/package_spec.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ae69005221929402f97a3f8dbdea133b94073ce
|
4
|
+
data.tar.gz: 923712bbfcaa636b27fb9574f6b6ad238a93a66e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 821fa55fab9b91dcb29da7da551d7fa1a5792db3d8ab58ba5f3b6a5c232d6ab0f7d4103a8d1c37fa74c1c57db56778ab27d611cdd5a7e562ef8217ba892df817
|
7
|
+
data.tar.gz: 8c5d7fcab2b84a06e1b2555851dcd15cd307e7579cfe1747ae8615cadf2701f80d445225051dc04f6937a6df9955ae1f3913b72558554e48900d598f96619ea3
|
@@ -1,7 +1,11 @@
|
|
1
1
|
class Specinfra::Command::Esxi::Base::Package < Specinfra::Command::Linux::Base::Package
|
2
2
|
class << self
|
3
3
|
def check_is_installed(package, version=nil)
|
4
|
-
"esxcli software vib list | grep #{escape(package)}"
|
4
|
+
cmd = "esxcli software vib list | grep -w -- #{escape(package)}"
|
5
|
+
if version
|
6
|
+
cmd = "#{cmd} | grep -w -- #{escape(version)}"
|
7
|
+
end
|
8
|
+
cmd
|
5
9
|
end
|
6
10
|
end
|
7
11
|
end
|
data/lib/specinfra/version.rb
CHANGED
@@ -4,5 +4,9 @@ property[:os] = nil
|
|
4
4
|
set :os, { :family => 'esxi' }
|
5
5
|
|
6
6
|
describe get_command(:check_package_is_installed, 'httpd') do
|
7
|
-
it { should eq 'esxcli software vib list | grep httpd' }
|
7
|
+
it { should eq 'esxcli software vib list | grep -w -- httpd' }
|
8
|
+
end
|
9
|
+
|
10
|
+
describe get_command(:check_package_is_installed, 'httpd', '2.0') do
|
11
|
+
it { should eq 'esxcli software vib list | grep -w -- httpd | grep -w -- 2.0'}
|
8
12
|
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.82.
|
4
|
+
version: 2.82.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-scp
|