Method: Bdsync::Lfs#upload_file

Defined in:
lib/bdsync/lfs.rb

#upload_file(local_path, remote_path) ⇒ Object



55
56
57
58
59
60
61
62
# File 'lib/bdsync/lfs.rb', line 55

def upload_file local_path, remote_path
    remote_ensure_parent remote_path

    puts "#{Utils.caller_info 1} cp #{local_path}, #{remote_path}".white
    FileUtils.cp local_path, remote_path

    remote_get_object remote_path
end