specinfra 0.0.17 → 0.1.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.rb +4 -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: 5e97a080f13f99d6a940f679604d69749f7076e1
|
4
|
+
data.tar.gz: 42ef2cfa0eae875184c6c619753a0cfabb7723d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6066c4510a93101630b276d59080c9f5bc9a61071ab1a1be922942e870033490ad39b82b743a7c49020e77a2e26f8c3c5918d54db946246ef4909230215c9f36
|
7
|
+
data.tar.gz: 5594e269d05856b902f7020b26152a24ddb023992313016e9d41b9c1d9f893eaa9a35657ffd6763e77d04b200da49e5926343fe09df0ab7f554bad2840dcf82b
|
@@ -113,6 +113,10 @@ module SpecInfra
|
|
113
113
|
"ps aux | grep -w -- #{escape(process)} | grep -qv grep"
|
114
114
|
end
|
115
115
|
|
116
|
+
def get_process(process, opts)
|
117
|
+
"ps -C #{escape(process)} -o #{opts[:format]} | head -1"
|
118
|
+
end
|
119
|
+
|
116
120
|
def check_file_contain(file, expected_pattern)
|
117
121
|
"#{check_file_contain_with_regexp(file, expected_pattern)} || #{check_file_contain_with_fixed_strings(file, expected_pattern)}"
|
118
122
|
end
|
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: 0.0
|
4
|
+
version: 0.1.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: 2013-12-
|
11
|
+
date: 2013-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|