Skip to content

Commit 83bcada

Browse files
committed
Merge branch 'master' of git@github.com:ezmobius/chef
2 parents 2cd7adf + 15030cf commit 83bcada

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

chef-server/bin/chef-server

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,4 @@ else
4343
)
4444
end
4545

46-
Chef::Config.from_file(File.join("/etc/", "chef", "server.rb"))
47-
4846
Merb.start

chef-server/lib/init.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@
117117
Merb.push_path(:public, File.join(File.dirname(__FILE__), "public"))
118118

119119
require 'merb-haml'
120-
require 'uv'
121120

122121

123122
#

chef/lib/chef/resource/execute.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ def group(arg=nil)
8282

8383
def only_if(arg=nil, &blk)
8484
if Kernel.block_given?
85-
@not_if = blk
85+
@only_if = blk
8686
else
87-
@not_if = arg if arg
87+
@only_if = arg if arg
8888
end
89-
@not_if
89+
@only_if
9090
end
9191

9292
def path(arg=nil)

chef/lib/chef/rest.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ def run_request(method, url, data=false, limit=10, raw=false)
130130
size += chunk.size
131131
if size == 0
132132
Chef::Log.debug("#{req.path} done (0 length file)")
133+
elsif total == 0
134+
Chef::Log.debug("#{req.path} (zero content length)")
133135
else
134136
Chef::Log.debug("#{req.path} %d%% done (%d of %d)" % [(size * 100) / total, size, total])
135137
end

0 commit comments

Comments
 (0)