chef-handler-motd 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'chef-handler-motd'
3
- s.version = '0.3.0'
3
+ s.version = '0.3.1'
4
4
  s.author = 'Simple Finance'
5
5
  s.email = 'ops@simple.com'
6
6
  s.homepage = 'http://github.com/SimpleFinance/chef-handler-motd'
@@ -32,7 +32,7 @@ class ChefMOTD < Chef::Handler
32
32
 
33
33
  def delete_outdated
34
34
  Dir.entries('/etc/update-motd.d').select do |entry|
35
- /chef-motd/.match entry && !/^#{@priority}/.match entry
35
+ /chef-motd/.match(entry) && !/^#{@priority}/.match(entry)
36
36
  end.each do |del|
37
37
  Chef::Log.warn "Deleting #{del} as it does not match the current ChefMOTD priority"
38
38
  FileUtils.rm ::File.join('/etc', 'update-motd.d', del)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-handler-motd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-16 00:00:00.000000000 Z
12
+ date: 2013-05-28 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Edits MOTD at the end of a Chef run
15
15
  email: ops@simple.com