chef-handler-reset-resolvconf 0.1.2 → 0.1.3

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.2'
3
+ s.version = '0.1.3'
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'
@@ -49,7 +49,7 @@ class ResetResolvconf < Chef::Handler
49
49
  Chef::Log.info('Chef run failed! Reverting /etc/resolv.conf!')
50
50
  Chef::Log.debug("Copying current /etc/resolv.conf to #{@dest}")
51
51
  FileUtils.cp('/etc/resolv.conf', @dest)
52
- File.open('/etc/resolv.conf'){|f| f.puts(File.read(@old))}
52
+ File.open('/etc/resolv.conf', 'w'){|f| f.puts(File.read(@old))}
53
53
  end
54
54
  end
55
55
  end
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.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -17,8 +17,6 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - chef-handler-reset-resolvconf-0.1.0.gem
21
- - chef-handler-reset-resolvconf-0.1.1.gem
22
20
  - chef-handler-reset-resolvconf.gemspec
23
21
  - lib/chef-handler-reset-resolvconf.rb
24
22
  - LICENSE