Method: Fulmar::Infrastructure::Model::Transfer::RsyncWithVersions#transfer
- Defined in:
- lib/fulmar/infrastructure/model/transfer/rsync_with_versions.rb
#transfer ⇒ true, false
Copy the files via rsync to the release_path on the remote machine
61 62 63 64 65 66 67 68 |
# File 'lib/fulmar/infrastructure/model/transfer/rsync_with_versions.rb', line 61 def transfer prepare unless @prepared raise 'Deployment failed when trying to prepare remote directories for sync.' unless create_paths raise 'Deployment failed. Cannot sync files.' unless @local_shell.run(rsync_command) raise 'Deployment failed when trying to move file from temporary upload dir.' unless copy_temp_to_release raise 'Deployment failed when creating symlinks for shared folders' unless add_shared end |