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.
- data/chef-handler-motd.gemspec +1 -1
- data/lib/chef-handler-motd.rb +1 -1
- metadata +2 -2
data/chef-handler-motd.gemspec
CHANGED
data/lib/chef-handler-motd.rb
CHANGED
@@ -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
|
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.
|
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-
|
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
|