chef 0.7.14 → 0.7.16
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of chef might be problematic. Click here for more details.
- data/lib/chef.rb +1 -1
- data/lib/chef/config.rb +1 -0
- data/lib/chef/daemon.rb +1 -1
- data/lib/chef/provider/file.rb +1 -1
- metadata +2 -2
data/lib/chef.rb
CHANGED
data/lib/chef/config.rb
CHANGED
data/lib/chef/daemon.rb
CHANGED
@@ -41,7 +41,7 @@ class Chef
|
|
41
41
|
Process.setsid
|
42
42
|
exit if fork
|
43
43
|
Chef::Log.info("Forked, in #{Process.pid}. Priveleges: #{Process.euid} #{Process.egid}")
|
44
|
-
File.umask
|
44
|
+
File.umask Chef::Config[:umask]
|
45
45
|
$stdin.reopen("/dev/null")
|
46
46
|
$stdout.reopen("/dev/null", "a")
|
47
47
|
$stdout.reopen($stdout)
|
data/lib/chef/provider/file.rb
CHANGED
@@ -166,7 +166,7 @@ class Chef
|
|
166
166
|
savetime = time.strftime("%Y%m%d%H%M%S")
|
167
167
|
backup_filename = "#{@new_resource.path}.chef-#{savetime}"
|
168
168
|
Chef::Log.info("Backing up #{@new_resource} to #{backup_filename}")
|
169
|
-
FileUtils.cp(file, backup_filename)
|
169
|
+
FileUtils.cp(file, backup_filename, :preserve => true)
|
170
170
|
|
171
171
|
# Clean up after the number of backups
|
172
172
|
slice_number = @new_resource.backup - 1
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-12-22 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|