chef 0.9.0.a8 → 0.9.0.a10

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.

@@ -765,7 +765,7 @@ class Chef
765
765
  specificity = "default"
766
766
 
767
767
  if segment == :root_files
768
- matcher = segment_file.match("/#{name}/(.+)")
768
+ matcher = segment_file.match(".+/#{name}/(.+)")
769
769
  file_name = matcher[1]
770
770
  path = file_name
771
771
  elsif segment == :templates || segment == :files
@@ -830,4 +830,4 @@ class Chef
830
830
  end
831
831
 
832
832
  end
833
- end
833
+ end
@@ -168,6 +168,7 @@ class Chef
168
168
  on_disk_path = checksums_to_on_disk_paths[manifest_record[:checksum]]
169
169
  dest = File.join(tmp_cookbook_dir, cookbook.name.to_s, path_in_cookbook)
170
170
  FileUtils.mkdir_p(File.dirname(dest))
171
+ Chef::Log.debug("Staging #{on_disk_path} to #{dest}")
171
172
  FileUtils.cp(on_disk_path, dest)
172
173
  end
173
174
  end
@@ -182,6 +183,8 @@ class Chef
182
183
  kcm.config[:cookbook_path] = [ tmp_cookbook_dir ]
183
184
  kcm.name_args = [ cookbook.name.to_s ]
184
185
  kcm.run
186
+
187
+ tmp_cookbook_dir
185
188
  end
186
189
 
187
190
  def catch_auth_exceptions
@@ -143,7 +143,7 @@ class Chef
143
143
 
144
144
  Chef::Log.debug("Fetching preseed file to #{cache_seed_to}")
145
145
 
146
- remote_file = Chef::Resource::CookbookFile.new(cache_seed_to)
146
+ remote_file = Chef::Resource::CookbookFile.new(cache_seed_to, run_context)
147
147
  remote_file.cookbook_name = @new_resource.cookbook_name
148
148
  remote_file.source(@new_resource.response_file)
149
149
  remote_file.backup(false)
@@ -16,5 +16,5 @@
16
16
  # limitations under the License.
17
17
 
18
18
  class Chef
19
- VERSION = '0.9.0.a8'
19
+ VERSION = '0.9.0.a10'
20
20
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 829723527
4
5
  prerelease: true
5
6
  segments:
6
7
  - 0
7
8
  - 9
8
9
  - 0
9
- - a8
10
- version: 0.9.0.a8
10
+ - a10
11
+ version: 0.9.0.a10
11
12
  platform: ruby
12
13
  authors:
13
14
  - Adam Jacob
@@ -26,6 +27,7 @@ dependencies:
26
27
  requirements:
27
28
  - - ">="
28
29
  - !ruby/object:Gem::Version
30
+ hash: 19
29
31
  segments:
30
32
  - 1
31
33
  - 1
@@ -41,6 +43,7 @@ dependencies:
41
43
  requirements:
42
44
  - - ">="
43
45
  - !ruby/object:Gem::Version
46
+ hash: 19
44
47
  segments:
45
48
  - 1
46
49
  - 1
@@ -56,6 +59,7 @@ dependencies:
56
59
  requirements:
57
60
  - - ">="
58
61
  - !ruby/object:Gem::Version
62
+ hash: 19
59
63
  segments:
60
64
  - 1
61
65
  - 1
@@ -71,6 +75,7 @@ dependencies:
71
75
  requirements:
72
76
  - - ">="
73
77
  - !ruby/object:Gem::Version
78
+ hash: 19
74
79
  segments:
75
80
  - 1
76
81
  - 1
@@ -86,6 +91,7 @@ dependencies:
86
91
  requirements:
87
92
  - - ">="
88
93
  - !ruby/object:Gem::Version
94
+ hash: 11
89
95
  segments:
90
96
  - 0
91
97
  - 5
@@ -101,6 +107,7 @@ dependencies:
101
107
  requirements:
102
108
  - - ">="
103
109
  - !ruby/object:Gem::Version
110
+ hash: 31
104
111
  segments:
105
112
  - 1
106
113
  - 0
@@ -108,6 +115,7 @@ dependencies:
108
115
  version: 1.0.4
109
116
  - - <=
110
117
  - !ruby/object:Gem::Version
118
+ hash: 1
111
119
  segments:
112
120
  - 1
113
121
  - 5
@@ -123,6 +131,7 @@ dependencies:
123
131
  requirements:
124
132
  - - ">="
125
133
  - !ruby/object:Gem::Version
134
+ hash: 7
126
135
  segments:
127
136
  - 0
128
137
  - 6
@@ -138,6 +147,7 @@ dependencies:
138
147
  requirements:
139
148
  - - <=
140
149
  - !ruby/object:Gem::Version
150
+ hash: 3
141
151
  segments:
142
152
  - 1
143
153
  - 4
@@ -153,6 +163,7 @@ dependencies:
153
163
  requirements:
154
164
  - - ">="
155
165
  - !ruby/object:Gem::Version
166
+ hash: 3
156
167
  segments:
157
168
  - 0
158
169
  version: "0"
@@ -166,6 +177,7 @@ dependencies:
166
177
  requirements:
167
178
  - - ">="
168
179
  - !ruby/object:Gem::Version
180
+ hash: 3
169
181
  segments:
170
182
  - 0
171
183
  version: "0"
@@ -179,6 +191,7 @@ dependencies:
179
191
  requirements:
180
192
  - - ">="
181
193
  - !ruby/object:Gem::Version
194
+ hash: 3
182
195
  segments:
183
196
  - 0
184
197
  version: "0"
@@ -192,6 +205,7 @@ dependencies:
192
205
  requirements:
193
206
  - - ">="
194
207
  - !ruby/object:Gem::Version
208
+ hash: 3
195
209
  segments:
196
210
  - 0
197
211
  version: "0"
@@ -205,6 +219,7 @@ dependencies:
205
219
  requirements:
206
220
  - - ">="
207
221
  - !ruby/object:Gem::Version
222
+ hash: 3
208
223
  segments:
209
224
  - 0
210
225
  version: "0"
@@ -537,6 +552,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
537
552
  requirements:
538
553
  - - ">="
539
554
  - !ruby/object:Gem::Version
555
+ hash: 3
540
556
  segments:
541
557
  - 0
542
558
  version: "0"
@@ -545,6 +561,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
545
561
  requirements:
546
562
  - - ">"
547
563
  - !ruby/object:Gem::Version
564
+ hash: 25
548
565
  segments:
549
566
  - 1
550
567
  - 3