Class: DRbQS::Transfer::Client::Local
- Inherits:
-
Base
- Object
- Base
- DRbQS::Transfer::Client::Local
show all
- Defined in:
- lib/drbqs/utility/transfer/transfer_client_connect.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#download(files) ⇒ Object
73
74
75
76
77
78
79
|
# File 'lib/drbqs/utility/transfer/transfer_client_connect.rb', line 73
def download(files)
files.map do |path|
dir, downloaded_path = directory_for_download(path)
FileUtils.cp_r(path, dir)
downloaded_path
end
end
|
#transfer(files) ⇒ Object
67
68
69
70
71
|
# File 'lib/drbqs/utility/transfer/transfer_client_connect.rb', line 67
def transfer(files)
files.each do |path|
FileUtils.mv(path, upload_name(path))
end
end
|