Method: Bdsync::Lfs#upload_file

Defined in:
lib/bdsync/lfs.rb

#upload_file(local_path, remote_path) ⇒ Object



51
52
53
54
55
56
57
58
# File 'lib/bdsync/lfs.rb', line 51

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