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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3affcf7ef4aba1d19795493e811f5f2f5e48a027
4
- data.tar.gz: dbab27e32498d872bc7aa9683c2aefb941e51444
3
+ metadata.gz: 7ae69005221929402f97a3f8dbdea133b94073ce
4
+ data.tar.gz: 923712bbfcaa636b27fb9574f6b6ad238a93a66e
5
5
  SHA512:
6
- metadata.gz: f5faddd1bad64b5cae4ad495394bc01b8551a1f829342e61f8f5a578eddfd4f4e2fe3475898e9606c46b768422296266e3c849bcf30f465980f30bbc1df9e97d
7
- data.tar.gz: 2552cfbeac6b19b03e50aa4f95ec6027c8308f31389f7eeb62f769cd9c52be6e63ac57d1ac1725c2110535858782de21b12698cab8c63fb068f880de5777dca7
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
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.82.3"
2
+ VERSION = "2.82.4"
3
3
  end
@@ -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.3
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-10-17 00:00:00.000000000 Z
11
+ date: 2019-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp