Method: Bard::Server#rsync_uri
- Defined in:
- lib/bard/server.rb
#rsync_uri(file_path = nil) ⇒ Object
116 117 118 119 120 121 122 123 124 |
# File 'lib/bard/server.rb', line 116 def rsync_uri file_path=nil str = ssh_uri.dup.tap do |uri| uri.send :set_scheme, nil uri.send :set_port, nil end.to_s[2..] str += ":#{path}" str += "/#{file_path}" if file_path str end |