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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0da1365e8d8676bcad41db6cdacd67b309354656
4
- data.tar.gz: 39d91887af379e3e1155b7d1604748fc501baf66
3
+ metadata.gz: 5e97a080f13f99d6a940f679604d69749f7076e1
4
+ data.tar.gz: 42ef2cfa0eae875184c6c619753a0cfabb7723d4
5
5
  SHA512:
6
- metadata.gz: b34de2927d0cb35f19a3a97df1963c079f94b07509a8053af53c985e26d625611fefc63d336a66bb8971daed400046751020d868529878dc7cf5511c1ce5460d
7
- data.tar.gz: 3cc20a30cc93bd3d18a9eae3526b73c9fdbc44cfca72f9092239ae294b0ceca2d2e8166f6960352afbb93984b457f8b87bdb19688df33d8a3030d558b2240d80
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
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "0.0.17"
2
+ VERSION = "0.1.0"
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: 0.0.17
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-20 00:00:00.000000000 Z
11
+ date: 2013-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler