chef-handler-reset-resolvconf 0.1.1 → 0.1.2

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-reset-resolvconf'
3
- s.version = '0.1.1'
3
+ s.version = '0.1.2'
4
4
  s.author = 'Simple Finance'
5
5
  s.email = 'ops@simple.com'
6
6
  s.homepage = 'http://github.com/SimpleFinance/chef-handler-reset-resolvconf'
@@ -43,7 +43,7 @@ class ResetResolvconf < Chef::Handler
43
43
 
44
44
  def report
45
45
  if run_status.failed?
46
- if !File.exists(@old)
46
+ if !File.exists?(@old)
47
47
  Chef::Log.error("Couldn't find a file at #{@old}, bailing!")
48
48
  else
49
49
  Chef::Log.info('Chef run failed! Reverting /etc/resolv.conf!')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-handler-reset-resolvconf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,6 +18,7 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - chef-handler-reset-resolvconf-0.1.0.gem
21
+ - chef-handler-reset-resolvconf-0.1.1.gem
21
22
  - chef-handler-reset-resolvconf.gemspec
22
23
  - lib/chef-handler-reset-resolvconf.rb
23
24
  - LICENSE