chef 0.8.14 → 0.8.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.

@@ -30,7 +30,7 @@ require 'chef/webui_user'
30
30
  require 'chef/openid_registration'
31
31
 
32
32
  class Chef
33
- VERSION = "0.8.14"
33
+ VERSION = "0.8.16"
34
34
  end
35
35
 
36
36
  # Adds a Dir.glob to Ruby 1.8.5, for compat
@@ -315,10 +315,9 @@ class Chef
315
315
  # Check for cookbooks in the path given
316
316
  # Chef::Config[:cookbook_path] can be a string or an array
317
317
  # if it's an array, go through it and check each one, raise error at the last one if no files are found
318
- Chef::Log.fatal "BUGBUG: cookbook_path: #{Chef::Config[:cookbook_path]}"
318
+ Chef::Log.debug "loading from cookbook_path: #{Array(Chef::Config[:cookbook_path]).map { |path| File.expand_path(path) }.join(', ')}"
319
319
  Array(Chef::Config[:cookbook_path]).each_with_index do |cookbook_path, index|
320
320
  if directory_not_empty?(cookbook_path)
321
- Chef::Log.fatal "BUGBUG: cb path not empty: #{cookbook_path}"
322
321
  break
323
322
  else
324
323
  msg = "No cookbook found in #{Chef::Config[:cookbook_path].inspect}, make sure cookboook_path is set correctly."
@@ -73,7 +73,7 @@ class Chef
73
73
 
74
74
  if update
75
75
  backup
76
- FileUtils.mv(template_file.path, @new_resource.path)
76
+ FileUtils.cp(template_file.path, @new_resource.path)
77
77
  @new_resource.updated = true
78
78
  else
79
79
  Chef::Log.debug("#{@new_resource} is unchanged")
@@ -199,6 +199,9 @@ module Shef
199
199
 
200
200
  def parse_opts
201
201
  parse_options
202
+ # We have to nuke ARGV to make sure irb's option parser never sees it.
203
+ # otherwise, IRB complains about command line switches it doesn't recognize.
204
+ ARGV.clear
202
205
  config[:config_file] = config_file_for_shef_mode
203
206
  config_msg = config[:config_file] || "none (standalone shef session)"
204
207
  puts "loading configuration: #{config_msg}"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 8
8
- - 14
9
- version: 0.8.14
8
+ - 16
9
+ version: 0.8.16
10
10
  platform: ruby
11
11
  authors:
12
12
  - Adam Jacob
@@ -14,14 +14,13 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-07 00:00:00 -07:00
17
+ date: 2010-05-11 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: mixlib-config
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
24
  requirements:
26
25
  - - ">="
27
26
  - !ruby/object:Gem::Version
@@ -36,7 +35,6 @@ dependencies:
36
35
  name: mixlib-cli
37
36
  prerelease: false
38
37
  requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
38
  requirements:
41
39
  - - ">="
42
40
  - !ruby/object:Gem::Version
@@ -51,7 +49,6 @@ dependencies:
51
49
  name: mixlib-log
52
50
  prerelease: false
53
51
  requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
52
  requirements:
56
53
  - - ">="
57
54
  - !ruby/object:Gem::Version
@@ -66,7 +63,6 @@ dependencies:
66
63
  name: mixlib-authentication
67
64
  prerelease: false
68
65
  requirement: &id004 !ruby/object:Gem::Requirement
69
- none: false
70
66
  requirements:
71
67
  - - ">="
72
68
  - !ruby/object:Gem::Version
@@ -81,7 +77,6 @@ dependencies:
81
77
  name: ohai
82
78
  prerelease: false
83
79
  requirement: &id005 !ruby/object:Gem::Requirement
84
- none: false
85
80
  requirements:
86
81
  - - ">="
87
82
  - !ruby/object:Gem::Version
@@ -96,7 +91,6 @@ dependencies:
96
91
  name: bunny
97
92
  prerelease: false
98
93
  requirement: &id006 !ruby/object:Gem::Requirement
99
- none: false
100
94
  requirements:
101
95
  - - ">="
102
96
  - !ruby/object:Gem::Version
@@ -111,7 +105,6 @@ dependencies:
111
105
  name: json
112
106
  prerelease: false
113
107
  requirement: &id007 !ruby/object:Gem::Requirement
114
- none: false
115
108
  requirements:
116
109
  - - <=
117
110
  - !ruby/object:Gem::Version
@@ -126,7 +119,6 @@ dependencies:
126
119
  name: erubis
127
120
  prerelease: false
128
121
  requirement: &id008 !ruby/object:Gem::Requirement
129
- none: false
130
122
  requirements:
131
123
  - - ">="
132
124
  - !ruby/object:Gem::Version
@@ -139,7 +131,6 @@ dependencies:
139
131
  name: extlib
140
132
  prerelease: false
141
133
  requirement: &id009 !ruby/object:Gem::Requirement
142
- none: false
143
134
  requirements:
144
135
  - - ">="
145
136
  - !ruby/object:Gem::Version
@@ -152,7 +143,6 @@ dependencies:
152
143
  name: moneta
153
144
  prerelease: false
154
145
  requirement: &id010 !ruby/object:Gem::Requirement
155
- none: false
156
146
  requirements:
157
147
  - - ">="
158
148
  - !ruby/object:Gem::Version
@@ -421,10 +411,6 @@ files:
421
411
  - lib/chef/util/file_edit.rb
422
412
  - lib/chef/webui_user.rb
423
413
  - lib/chef.rb
424
- - bin/chef-client
425
- - bin/chef-solo
426
- - bin/knife
427
- - bin/shef
428
414
  has_rdoc: true
429
415
  homepage: http://wiki.opscode.com/display/chef
430
416
  licenses: []
@@ -435,7 +421,6 @@ rdoc_options: []
435
421
  require_paths:
436
422
  - lib
437
423
  required_ruby_version: !ruby/object:Gem::Requirement
438
- none: false
439
424
  requirements:
440
425
  - - ">="
441
426
  - !ruby/object:Gem::Version
@@ -443,7 +428,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
443
428
  - 0
444
429
  version: "0"
445
430
  required_rubygems_version: !ruby/object:Gem::Requirement
446
- none: false
447
431
  requirements:
448
432
  - - ">="
449
433
  - !ruby/object:Gem::Version
@@ -453,7 +437,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
453
437
  requirements: []
454
438
 
455
439
  rubyforge_project:
456
- rubygems_version: 1.3.6.1
440
+ rubygems_version: 1.3.6
457
441
  signing_key:
458
442
  specification_version: 3
459
443
  summary: A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.