specinfra 2.77.3 → 2.78.0
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/base/package.rb +7 -0
- data/lib/specinfra/version.rb +1 -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: b031d358904bc240a4a7417087aa4f1c55719d51
|
4
|
+
data.tar.gz: 4a67733eee44c54a7ec229e77ea24980515e4c85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 832b20479f43cfacac9295500a316997778a969f038d73189f31f23fb1f0499172f0100ec3f3f2f98459c4f7902c7bdf1f691bd88bde6ecc66d67dad161f2d19
|
7
|
+
data.tar.gz: 016e76dc1d537f43affe7e7e18d4138c4d71f86fddc4ce22802fd0753590ed22a0671ab2e77e1fd2faaf0233faf944542212941f6b1d5f59eb114b709d737f02
|
@@ -41,6 +41,13 @@ class Specinfra::Command::Base::Package < Specinfra::Command::Base
|
|
41
41
|
cmd = "#{cmd} | grep -w -- #{escape(version)}" if version
|
42
42
|
cmd
|
43
43
|
end
|
44
|
+
|
45
|
+
def check_is_installed_by_pip2(name, version=nil)
|
46
|
+
regexp = "^#{name}"
|
47
|
+
cmd = "pip2 list | grep -iw -- #{escape(regexp)}"
|
48
|
+
cmd = "#{cmd} | grep -w -- #{escape(version)}" if version
|
49
|
+
cmd
|
50
|
+
end
|
44
51
|
|
45
52
|
def check_is_installed_by_pip3(name, version=nil)
|
46
53
|
regexp = "^#{name} "
|
data/lib/specinfra/version.rb
CHANGED
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.
|
4
|
+
version: 2.78.0
|
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-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-scp
|