Permalink
Browse files

Allow logger to be set via an accessor. Add a sleep in upload to redu…

…ce CPU impact.

git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@7180 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
jamis committed Jul 11, 2007
1 parent b53072e commit 5c370ba427e55ec53f999b1ede81222e27c0be99
Showing with 6 additions and 1 deletion.
  1. +4 −0 CHANGELOG
  2. +1 −1 lib/capistrano/configuration.rb
  3. +1 −0 lib/capistrano/upload.rb
View
@@ -1,5 +1,9 @@
*SVN*
+* Add a millisecond sleep in upload to reduce CPU impact [Jamis Buck]
+
+* Allow the logger to be set via Configuration#logger= [Jamis Buck]
+
* Allow $CAPISTRANO:HOST$ to be used in filenames to the put command [Jamis Buck]
* Allow execute_on_servers to be called without a current task again [Jamis Buck]
@@ -19,7 +19,7 @@ module Capistrano
# define roles, and set configuration variables.
class Configuration
# The logger instance defined for this configuration.
- attr_reader :logger
+ attr_accessor :logger
def initialize #:nodoc:
@logger = Logger.new
View
@@ -70,6 +70,7 @@ def process!
failed!(sftp)
end
end
+ sleep 0.01 # a brief respite, to keep the CPU from going crazy
end
logger.trace "upload finished" if logger

0 comments on commit 5c370ba

Please sign in to comment.