lib/bdsync/lfs.rb in bdsync-2.2.0 vs lib/bdsync/lfs.rb in bdsync-2.3.0
- old
+ new
@@ -9,14 +9,10 @@
def self.options
Core.options
end
- def start_session &block
- yield
- end
-
# yield object like this
# {
# name:
# attributes: {
# directory?:
@@ -90,8 +86,13 @@
local_ensure_parent path
end
def get_remote_file_md5 path
Utils.file_md5 path
+ end
+
+ # for test
+ def create_remote_file remote_path, content
+ File.write remote_path, content
end
end
end