Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 7878

Show
Ignore:
Timestamp:
10/14/07 14:34:26 (9 months ago)
Author:
minam
Message:

default to 0664 instead of 0660 on upload

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/capistrano/CHANGELOG

    r7869 r7878  
    11*SVN* 
     2 
     3* Default to 0664 instead of 0660 on upload [Jamis Buck] 
    24 
    35* Fix deploy:pending to query SCM for the subsequent revision so that it does not include the last deployed change [Jamis Buck] 
  • tools/capistrano/lib/capistrano/upload.rb

    r7180 r7878  
    102102 
    103103          real_filename = filename.gsub(/\$CAPISTRANO:HOST\$/, server.host) 
    104           sftp.open(real_filename, IO::WRONLY | IO::CREAT | IO::TRUNC, options[:mode] || 0660) do |status, handle| 
     104          sftp.open(real_filename, IO::WRONLY | IO::CREAT | IO::TRUNC, options[:mode] || 0664) do |status, handle| 
    105105            break unless check_status(sftp, "open #{real_filename}", server, status) 
    106106