mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Allow logger to be set via an accessor. Add a sleep in upload to reduce CPU impact.
git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@7180 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
b53072ef65
commit
5c370ba427
3 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -70,6 +70,7 @@ module Capistrano
|
|||
failed!(sftp)
|
||||
end
|
||||
end
|
||||
sleep 0.01 # a brief respite, to keep the CPU from going crazy
|
||||
end
|
||||
logger.trace "upload finished" if logger
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue