class Tumugi::Plugin::GoogleCloudStorage::AtomicFile
Public Class Methods
new(path, fs)
click to toggle source
Calls superclass method
# File lib/tumugi/plugin/google_cloud_storage/atomic_file.rb, line 7 def initialize(path, fs) super(path) @fs = fs end
Public Instance Methods
move_to_final_destination(temp_file)
click to toggle source
# File lib/tumugi/plugin/google_cloud_storage/atomic_file.rb, line 12 def move_to_final_destination(temp_file) @fs.upload(temp_file, path) end