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.

@@ -27,7 +27,7 @@ require 'chef/config'
27
27
  Dir[File.join(File.dirname(__FILE__), 'chef/mixin/**/*.rb')].sort.each { |lib| require lib }
28
28
 
29
29
  class Chef
30
- VERSION = '0.7.14'
30
+ VERSION = '0.7.16'
31
31
  end
32
32
 
33
33
  # Adds a Dir.glob to Ruby 1.8.5, for compat
@@ -132,6 +132,7 @@ class Chef
132
132
  ssl_client_key ""
133
133
  ssl_verify_mode :verify_none
134
134
  template_url "http://localhost:4000"
135
+ umask 0022
135
136
  user nil
136
137
  validation_token nil
137
138
  role_path "/var/chef/roles"
@@ -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 0000
44
+ File.umask Chef::Config[:umask]
45
45
  $stdin.reopen("/dev/null")
46
46
  $stdout.reopen("/dev/null", "a")
47
47
  $stdout.reopen($stdout)
@@ -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.14
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-10-27 00:00:00 +13:00
12
+ date: 2009-12-22 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency