Method: Pantry::Communication::FileService::SendFile#send_file

Defined in:
lib/pantry/communication/file_service/send_file.rb

#send_file(file_path, receiver_uuid, file_uuid) ⇒ Object



17
18
19
20
21
22
23
24
# File 'lib/pantry/communication/file_service/send_file.rb', line 17

def send_file(file_path, receiver_uuid, file_uuid)
  sender_info = FileService::SendingFile.new(file_path, receiver_uuid, file_uuid)

  @sending[file_uuid] = sender_info
  send_message(sender_info, "START")

  sender_info
end