Method: URI::FILE#upload

Defined in:
lib/buildr/core/transports.rb

#upload(source, options = nil) ⇒ Object



492
493
494
495
496
497
# File 'lib/buildr/core/transports.rb', line 492

def upload(source, options = nil)
  super
  if File === source then
    File.chmod(source.stat.mode, real_path)
  end
end