serverspec 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -57,7 +57,7 @@ module Serverspec
57
57
 
58
58
  def check_cron_entry user, entry
59
59
  entry_escaped = entry.gsub(/\*/, '\\*')
60
- "crontab -u #{user} -l | grep '#{entry_escaped}'"
60
+ "crontab -u #{user} -l | grep \"#{entry_escaped}\""
61
61
  end
62
62
 
63
63
  def check_link link, target
@@ -17,6 +17,11 @@ module Serverspec
17
17
  "svcs -l #{service} status 2> /dev/null |grep 'state online'"
18
18
  end
19
19
 
20
+ def check_cron_entry user, entry
21
+ entry_escaped = entry.gsub(/\*/, '\\*')
22
+ "crontab -l #{user} | grep '#{entry_escaped}'"
23
+ end
24
+
20
25
  end
21
26
  end
22
27
  end
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverspec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 63
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 15
10
- version: 0.0.15
9
+ - 16
10
+ version: 0.0.16
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gosuke Miyashita